There are three ways in which thermal energy can be transferred:
In all of the methods thermal energy travels from objects/places to objects/places. The bigger the temperature difference, the faster the heat is transferred.