Earth stays in its orbit because of inertia and the gravitational pull of the sun.