The Earth orbits around the Sun it takes 365 and a quarter days to do this. The Earth spins on its axis clockwise. This is a great source of information.
The Earth’s rotation
Its takes 365.2564 days to go around the Sun. The Moon takes 28 days to orbit the Sun.
Small comets do not hit the Earth because unlike the moon, the Earth has an atmosphere so the comets burn up.