Observe how EMF drives charges through a resistive material. Scattering inside that material transfers energy to the lattice.
Same average current flows before, through, and after the resistor.