In an ICE engine about 30% of the energy becomes motion. About 70% is heat.[2]
In other words electric motors are about 3 times more efficient than ICE.
[1] an interesting side effect of this is that in cold climates you can't just harvest waste heat to heat the cabin (or batteries. ) So you end up using some battery energy if you need heat.
[2] ICE motors vary in effeciency a lot. 20-30% is typical. The Carnot formula comes into play here.
[3] because there is so little heat generated, the cooling systems (EVs still have them) are much smaller. And simpler (for example, no fan, 'cause there's no heat when standing still.)