Why does the resistance of metals increase when they are heated ?

Conductivity in metals is due to the presence of free electrons in the atomic lattice.  When the metal is heated, the atoms in the lattice vibrate.  This results in reduced movement of the electrons as they hit against the vibrating atoms.

This results in an increase in resistance of the metals. 

Most Metals have positive temperature coefficient of resistance. There are , however, exceptions such as carbon and semiconductor metals such as Silicon and Germanium.  Some Alloys have zero temperature coefficient of temperature which means that the resistance does not change with increase of temperature.  Manganin is an example.