When electrons travel through a conductor, they collide with the positive ions in the crystal lattice. Due to these collisions, energy is transferred from the electrons to the ions. As a result of this, the amplitude of thermal vibrations of the lattice increases and consequently the temperature of the crystal rises.