The Sun does not move.
The Earth moves around the Sun.
The Earth rotates on its axis.
This movement is called rotation.
One rotation takes 24 hours.
This is a day.
The rotation of the Earth causes day and night.
It is day in the half that receives the light from the Sun.
It is night in the half that does not receive light.