When electric charges move through a wire, they lose some of the energy to the atoms in the wire. On receiving the energy, The atoms vibrate more and more causing the wire to heat up. Some of the Electric Energy is changed to heat energy . The higher the resistance the more the heat energy.