Extruder clicking or skipping

The extruder makes a clicking or knocking sound and the filament stops feeding smoothly. The motor is pushing, but the filament can't move forward, so the drive gear slips back.

Fixes, in the order to try them: