Since the earth is tilted at an angle (23.5°) the earth is facing the sun at different angles as it orbits around the sun. This causes the sun to be heating different parts of the Earth when it is closest and farther away from the sun.