Earth's temperature is regulated by a combination of factors: the atmosphere traps heat via the greenhouse effect, gravity holds this atmosphere in place, and the Earth's rotation ensures that solar heating is distributed relatively evenly rather than baking one side continuously.