The earth revolves around the sun but it's tilted. The angle of the tilt doesn't change just the position of the planet. The summer is when that part of the globe is tilted towards the sun. If the northern hemisphere is tilted toward the sun the southern hemisphere would be tilted away. The part tilted towards the sun gets more sunlight and is warmer. The part tilted away wouldn't get as much light and would be colder.