GRAVITY
gravity is that force that attracts a body towards the center of the earth, or toward any other physical body having mass.
BOTH
They both change the motion of objects.
FRICTION
Energy generated when two surfaces or objects have physical interaction with each other.