What happens when your body temperature is too high or too low?

How is body temperature corrected to the set point value (37 C) if it is too high or too low