Spain’s auto industry is attracting billions in new investments from car makers world-wide, a bright spot for an economy still recovering from years of recession and high unemployment.

Germany’s Volkswagen AG and Daimler AG have recently ramped up their production capacity in the country, encouraged by relatively flexible labor laws and a vast network of local parts suppliers.

“Spain...