Think of a jammed finger. The joint swells, the muscles around it tighten, and it will not bend through its full range. A spinal joint does the same, for the same reasons.
Four things can hold it: a meniscoid fold caught between the joint surfaces, a capsule that has tightened, small adhesions that form when a joint does not move through its range, and the deep muscles, which clamp down by reflex to protect it.
The triggers fall into three groups. Mechanical: an injury, a fall, hours in one position. Chemical: inflammation. Neural: stress, which raises resting muscle tone. Chiropractors once called these trauma, toxins and thoughts.
The difference from a finger is the neighborhood. Inches from every spinal joint sit the spinal cord, the nerve roots and the chain of nerve cells that supply the organs.