Earth, Moon, and sun

How do the Earth, moon, and Sun move in our solar system and what are the effects of that movement?