As the earth rotates, it stays away from the sun at certain times. That means in seasons like winter and fall, it’s more cold since the sun is farther away. In spring, the sun gets closer. This is why spring is warmer. Finally, for summer, the sun is at its closet point, making it hotter. Being at a certain distance from the sun allows the earth to be warm, cold, or hot. So being away from the sun makes the earth colder.