Where you need process heat for industrial applications, you’re almost always better off with resistive heat or fossil fuels, typically gas.
For the rest, there are many ways to heat electrically. Including resistive, plasma, arc, induction, etc. Mostly, gas based heating is convenient because it is rather simple technology that is easy to use and we know how to do it at scale. But there is a lot of wasted heat in industry. Mostly that just blows out the chimneys or is radiated to the universe.
Cooling is as big of a problem as heating is in industry. Cooling is the process of expending more energy in order to get rid of the already wasted energy you can't use. Very little of that energy is recovered. Though some places run e.g. district heating on this type of energy.
There are examples of steel producers that are using electric heat now. Still a bit niche. But it works. A lot of this stuff is inertia. Building and designing new factories from scratch is expensive and disruptive. Gas isn't expensive/wasteful enough to consider that for a lot of existing industries. However, new companies would be well advised to see if they can undercut the competition by going electric. Especially in places where gas now has to be imported in LNG form at great cost.
My cheap air to air heat pump in the summerhouse (Panasonic HZ25ZKE) is effective down to -25C and has a COP of 2.22 there. Even at -25C it still delivers twice as much heat energy as the electricity consumed.
https://www.aircon.panasonic.eu/DK_da/product/panasonic-hz25...
I'll add that this being an older house (1970s) we have "other issues" that causes heat loss, so we usually run the log burner for supplementary heat during those few days of -20C. The heat pump can keep the house warm, but you can feel the cold "pushing in" from walls and windows (dual pane).
Sadly the heat pump has also kinda voided all attempts to renovate for saving energy. Our yearly heat cost (heating and warm water) is around €750, and adding insulation would cost around €3500, for a potential saving of around 10-20%, so a total of 20-30 years to earn itself back again.
This is also my experience in upstate New York at such temperatures.
But it really made me realize that even though I'm used to brick houses and stone everywhere that that is a terrible thing efficiency wise. A properly insulated wooden house can indeed be heated almost by body heat and waste heat alone. The big loss is windows so triple insulated and properly mounted windows are a must for such a setup.