When they bump into each other they transfer that energy (like dodgem cars at a fairground). Conduction is when heat is transferred by touch.
You can ask a new question or answer this question.