If one object is hotter than the other then there will be a net flow of thermal energy from the hotter to the colder object, increasing the temperature of the colder object and therefore decreasing the temperature of the hotter one until thermal equilibrium is reached