A spontaneous flow of thermal energy takes place from hot to cold. In order to flow thermal energy from a colder object to a hotter object, the work has to be implied on the system. The particle at higher temperature exhibits more kinetic energy in comparison to the particle at a lower temperature. Thus, there is a continuous flow of heat between the objects from the higher temperature to the lower temperature.