The Earth moves around the Sun due to gravitational pull exerted upon the Earth from the Sun. Stars and planets all have magnetic fields that attract smaller objects, such as satellites. Objects are attracted to the strongest gravitational pull that is in close proximity.
Since the Sun has the most gravitational pull in the solar system, the planets orbit around it in a continuous ellipse or oval. If the planets weren't moving along this elliptical orbit, they would simply fall into the Sun and burn up. Therefore, it's the gravitational pull plus the circular movement of the Earth that keeps it in place and moving around the Sun.
Just as the Earth moves around the Sun, smaller objects like the moon and satellites orbit around the Earth. This is because lighter objects are always attracted to the magnetic pull of heavier or larger objects. This theory was first discovered by the English scientist Sir Isaac Newton approximately 300 years ago, while he was studying gravity.
As the largest object in the solar system, the Sun is 1,000 times heavier than the largest planet, Jupiter. When compared with the Earth, Jupiter is a massive 300,000 times heavier.