how do earth get gravitational force?
Simply by having mass. Gravity is a property of mass,and every speck of mass in the universe is attracted to every other speck of mass.
Well, because earth is large (mass), we are able to have gravity. Some of it also comes from the moon and the sun pulling us