Gravity bends Earth’s motion around the Sun. Earth is neither stationary nor supported on a surface in space. Its velocity keeps it from falling directly into the Sun.
Kepler’s laws describe planetary orbital patterns, while Newtonian gravity explains those patterns to a useful approximation. Relativity provides refinements where higher precision is required.