Many people believe that we have seasons because the Earth moves closer to the Sun in summer. In fact, this is a common misconception. In the northern half of the world, the Earth is slightly closer to the Sun in early January, when it is winter.
The real cause is the tilt of the Earth's axis. As the Earth travels around the Sun, the north of the planet leans towards the Sun for part of the year and away from it for the rest. When it leans towards the Sun, sunlight hits the ground more directly, the days are longer, and the weather becomes warmer. Six months later, the situation is reversed.
This also explains why the seasons are opposite in the two halves of the world. When it is summer in Egypt, it is winter in Australia. If distance were the cause, the whole planet would have the same season at the same time. The tilt, rather than the distance, is therefore what determines the seasons.