Why do we have night and day?

As the Earth moves through space, it spins around like the way a basketball spins on your finger. The Earth spins on its axis. The axis is an invisible line that runs through the centre of the Earth. The Earth takes one day to make one complete spin.