Momentum is an optimizer that keeps a fixed fraction of the previous update direction and adds a correction from the current gradient to move the parameters. Polyak proposed it in 1964 and named it the "heavy ball method" in his paper. In deep learning, "SGD with momentum", which adds momentum to SGD, is still a standard choice for tasks such as image classification.
Gradient descent always moves in the steepest downhill direction at the current point (opposite to the gradient). But when the loss landscape is shaped like a long, narrow valley, the steepest direction points toward the opposite slope rather than along the valley floor. As a result, it bounces back and forth across the valley and makes little progress along the valley floor.
Momentum solves this problem with "inertia". Polyak showed that the method is described by the same equation as the motion of a body moving in a potential. A heavy ball does not change direction abruptly even if the slope keeps changing; it keeps its momentum and rolls along the valley floor. Gradients across the valley flip sign between the way there and the way back and cancel out, while gradients along the valley floor point the same way every time and accumulate.
It is like riding a bicycle down a gentle slope: building speed by pedaling gets you there faster than making small steering corrections back and forth.
Polyak proved that this method approaches the minimum in far fewer iterations than gradient descent, with almost no extra computation. Later, in 2013, Sutskever et al. showed that with a suitably large momentum coefficient, SGD with momentum can successfully train deep networks and RNNs that had been considered hard to train, which brought renewed attention to it in deep learning.

