Plain-English answer
A check valve says yes one way and no the other way.
When water flows the intended direction, the check valve opens. When water tries to reverse, the valve closes or resists reverse flow. That simple job can prevent repeated pumping, line drain-back, loss of prime, and some equipment problems.
The valve type, orientation, pressure rating, material, location, and service conditions all matter.