Distance
The closer you are to a large object, the stronger you feel its gravitation force. For example, on Earth we feel a gravitational pull of 1G, which equals to an accelerative force of 9.8 meters per second, each second. Because of this gravitational attraction, a skydiver jumping out of an airplane is able to quickly reach about 125mph, or what is referred to as "terminal velocity." At this point the air resistance acting on the skydiver's body will not allow him to go any faster. However, in a vacuum, any body subjected to a gravitation force could in theory keep accelerating indefinitely.
Speed
One way of overcoming the pull of gravity is to build up enough speed. This method is exactly how astronauts aboard the Space Shuttle are able to go on missions to the International Space Station. The large rocket engines develop several million pounds of thrust, which propels the shuttle at high velocity on its way to achieving a stable earth orbit. The shuttle orbits Earth at 18,000 miles per hour, or approximately 6 miles per second -- which is exactly Earth's escape velocity -- or the speed required to break free of the Earth's gravitation pull.
The Sun's Gravity
Scientists have calculated the Sun's gravity to be 28 times higher than that of Earth. If a 150-lbs. human were able to walk on the surface of the Sun, she would weigh 4,200 lbs., or about as much as a full-size sport utility vehicle. It is this large mass and gravitational force that acts on all of the other planets in the solar system -- and keeps them from flying off into space -- while the Sun remains at the center.
Orbiting a Star
Even at an average distance of 94 million miles, the Earth must still travel 18.75 miles each second to maintain the delicate balance and stay in orbit. If the Earth were to suddenly speed up, the Sun's gravitation field would no longer be strong enough to keep it in orbit, and the Earth would leave the solar system. Conversely, if Earth were to slow along its orbital path, it would be pulled closer and closer into the Sun. Velocity is key in overcoming the force of gravity and maintaining a stable orbit.