Conduction as heat transfer takes place if there is a temperature gradient in a solid or stationary fluid medium.
Energy transfers from more energetic to less energetic molecules when neighboring molecules collide. Heat flows in direction of decreasing temperatures since higher temperatures are associated with higher molecular energy.