When the earth is orbiting in the summer months the northern hemisphere the top of the earth is tilted towards the sun which gives us longer days.
In the winter months the earths top or northern hemisphere is tilted away from the sun which causes shorter days.