The tilt of the earth's axis and its orbit about the sun make days get longer in summer and shorter in winter. When days get longer there is more sunlight and it gets warmer, when they are shorter it gets cooler.
This nature phenomenon is caused basically for the movement of the earth around the sun in a year and secondly because of the tilt of the earth`s axis of rotation.