In the absence of any unbalanced forces, once an object is in motion, it will continue in motion. Friction is a force that opposes the motion of an object or the attempt to move an object. Friction is the force that causes objects to stop moving once they are in motion. Friction can also produce motion, as in the case of walking. Usually heat is produced as a result of friction.
Some surfaces are more difficult to move objects over.
Examples include dragging a box across a carpet Vs a smooth floor. Gravity is a force of attraction that pulls objects toward the earth. Gravity is the force that keeps the earth in orbit about our sun. We are closer to the earth than the sun, so we are pulled toward the earth more strongly than toward the sun. Gravity between most ordinary objects is too weak a force to notice.