Gravity is the reason why Earth and other planets revolve around the Sun snd why Moon revolves around the Earth, Are you wondering how?
Let’s find out. Earth and Moon pull each other with some gravitational force. It is like a game of tug-of-war. Now, Moon is smaller than the Earth so it doesn't have enough strength to pull away completely but it is not so weak either to just snap and lose the game. So, this game keeps going on and the Moon keeps revolving around the Earth in an Orbit.
Do you want to know how does the gravitational pull of the Moon affects Earth? The tides in the oceans are because of the Moon! The Moon’s gravity pulls the water of the oceans towards it, making small and big tides.