Here's a breakdown:
* Thermal energy is the total internal energy of a system due to its temperature. This energy is associated with the random motion of atoms and molecules within the system.
* Heat is the transfer of thermal energy between objects or systems at different temperatures.
* Heat always flows from a hotter object to a colder object, until they reach thermal equilibrium, meaning they have the same temperature. This is a consequence of the second law of thermodynamics.
Think of it like a water flowing downhill. Just as water flows from higher elevations to lower elevations, heat flows from higher temperatures to lower temperatures.