Explanation :
The transfer of heat continues untill the two bodies reach thermal equilibrium.
The heat can be transferred in via some processes like conduction, radiation and transfer of energy by changing of phase.
(1) Conduction : It is the transfer of heat via a solid. Heat can be transferred from one solid body to another.
(2) Convection : It is the transfer of heat from one place to another by the movement of fluids. Fluids include both liquids and gases.
(3) Radiation : It is the process of transfer of heat through electromagnetic waves. It is generated by the thermal motion of particles. All matter having a temperature greater than absolute zero emits radiation.