Heat flow and thermal equilibrium

When two systems at different temperatures touch, collisions pass energy from the faster atoms to the slower ones, so energy flows by heating from hot to cold until the temperatures match and no net energy moves; conduction, convection and radiation are the three ways it travels.

From AP Physics 2.