The Northern Hemisphere of the Earth is not closer to the sun when it is summer. It is warmer in the US during summer because we are tilted toward the sun, so its energy hits us more directly.