If the metal is heated as a result of heating, the space between atoms increases because of expansion. This increases the time to travel the distance between atoms. During this time the electrons have more collisions with other atoms photon etc. Because of it drift velocity reduces and hence conductivity reduces. Therefore, increases resistivity.