Isaac Newton hypothesized that gravity is the force that pulls objects like apples and the moon towards Earth, keeping them in orbit. Gravity depends on the masses of objects and the distance between them, with the formula f = g m1m2/d describing their relationship. The combination of gravity and inertia is what keeps celestial bodies, such as Earth and the moon, in their respective orbits.