The Earth has two types of motions, one is revolution and the other is rotation. Rotation is the movement of the Earth on its axis, while the movement of the Earth around the sun in an orbit (fixed path) is called revolution (the second type of motion of the Earth).
The formation of day and night and the season changes on the Earth are caused by rotation and revolution respectively.