Here you can see the Earth making an orbit around the Sun. The Earth keeps the same angle as it orbits, so that the northern hemisphere is closest to the Sun for part of the year (summer) and further away in the rest of the year (winter).