It causes the particles to vibrate and this causes the neighbouring particles to vibrate.
this process is continued until particles at the other vibrates.hence heat is transmitted from one place to another .Also it causes electrons to collide with the atoms of the metal.