How does gravity affect the moon?

A) it pulls the moon toward earth
B) it pushes the moon away from earth
C) it allows the moon to move in a straight line
D) it keeps the moon from colliding with the sun