Question: what is the relation between resistance and heat?
Answer: As electrons move through a metal conductor, some collide with atoms, other electrons or impurities. These collisions cause resistance and generate heat. Heating the metal conductor causes atoms to vibrate more, which in turn makes it more difficult for the electrons to flow, increasing resistance.