Electric current generates heat in metallic wires primarily due to collisions between conduction electrons (the charge carriers) and the metal atoms in the wire lattice. As electrons drift through the wire under electric potential, they collide with atoms, transferring kinetic energy to them. This increased atomic vibration manifests as heat - this is Joule heating. Electron-electron collisions don't significantly contribute to heating, and ionization doesn't occur in normal conduction.