How does the body cool off on a molecular level?

Beads of sweat break out on the body and that evaporates. The evaporation cools the body.