Tesla Inc.’s international expansion is gaining momentum, with authorities in Germany and the Netherlands initiating talks with the company to build its first major European factory.

The Silicon Valley car maker, which this month announced plans to build its first overseas plant in China, has had preliminary discussions with two German states vying to host a so-called Gigafactory in Europe to build electric cars and their batteries under one roof, officials involved in the talks said.

The...