Temperature measures the average energy of molecular motion in a substance, while heat is the total energy of all molecular motion. Heat always transfers from a hotter object to a cooler one, indicating the direction of energy flow in thermal contact. The fundamental distinction lies in that heat is energy transferred, whereas temperature is a measurement of that energy's average value.