Here's how it works:
* Every object with mass has gravity. The more massive an object, the stronger its gravitational pull.
* Gravity is a force of attraction. It pulls any two objects with mass towards each other.
* The force of gravity depends on the distance between the objects. The closer two objects are, the stronger the gravitational pull between them.
In the case of the moon, Earth, and sun:
* The sun's gravity is the strongest because it is the most massive object in our solar system. This is why the Earth and moon orbit the sun.
* The Earth's gravity pulls on the moon and keeps it in orbit around our planet.
* The moon's gravity also pulls on the Earth, causing tides.
So, gravity is the fundamental force that governs the movement and interaction of all objects in the universe, from the smallest particles to the largest galaxies.