The Sun's gravitational pull keeps our planet orbiting the Sun. The motion of the Moon is affected by the gravity of the Sun AND the Earth. The Moon's gravity pulls on the Earth and makes the tides rise and fall every day.
I believe this would be the cerebellum. This part of the brain is used for motor control like moving the fingers say and cognitive functions (to do with thinking) and also can affect the feelings of pain and pleasure.