How does thermoregulation work?

Can you answer this question?