When you touch a hot cup of cocoa, the heat energy of the cup flows into your hand, because the cup has a higher temperature than your hand. You feel the heat, or energy flow from hot to cold. Heat is the thermal energy that is transferred from one body to another and it always flows from a substance at a higher temperature into the substance with a lower temperature.
Heat energy is useful for doing many kinds of work.
DOES NOT mean that its temperature must increase. Temperature, on the other hand, provides a macroscopic measurement of the average random motion of the atoms and molecules of a substance. Temperature is a relative quantity that tells us the direction energy will flow when two objects come into contact. A tea cup of water and a large pot of water can have the same temperature, but the large pot of water will have a lot more heat energy than the tea cup of water. If you put the tea cup and large pot in contact with each other no heat energy will transfer as long as both have the same temperature.