It is transferred by conduction when two objects at two different temps touch each other, and the one with the most heat will transfer its heat to the cooler object until they both have the same temperature..
At the point of touching the fast moving molecules of the warmer object will collide with the slower moving molecules of the cooler object.