Industrial factories, yes. Local utilities seem to do well enough in Europe.
I wonder if there's a principled difference?
Utilities, on the other hand, are a natural monopoly inherently tied to a geographic location. They're not producing a "product", but instead a commodity that's the same for all customers. Many utilities are mostly forms of "road" - they just happen to be wire-shaped or pipe-shaped roads.
Note the mostly. Telecoms and electricity have two parts: the central, complex, services; and the big mostly-dumb network.
Its the last mile that makes telcos's natural monopoly's not the exchanges/switches/central offices
The Municipality obviously dictates the goals, like 100/100 fiber in the most remote parts of the area (which I just signed up for), and the company gets to execute them in the way it sees fit.
The municipality housing company is operated the same way.
This is not at all "Socialism".
BTW, state-owned factories almost always failed (numerous examples in 20th century Europe).