* Mass: The Sun is vastly more massive than the Moon. It has about 333,000 times the mass of the Earth, while the Moon has only about 1/81st the mass of the Earth.
* Gravity and Mass: Gravity is directly proportional to mass. The more massive an object, the stronger its gravitational pull.
Therefore, the Sun's gravitational pull is much stronger than the Moon's.
While the Moon seems to have a strong influence on Earth (tides), it's because it's much closer to us than the Sun. The Sun's gravity keeps the Earth in orbit, and its influence on Earth is much greater overall.