Gravity is a force that keeps everything to the earth but smaller things have gravity too, so it's like their pulling on Earth but their gravity is too small to have much of an effect. The sun's gravity also effect's Earth. Gravity keeps earth going around the sun.