A stimulus, such as a hammer, hits the knee. This is detected by sense organs in the peripheral nervous system, which conveys a message along a sensory neuron.
The message reaches the central nervous system, where it connects with a relay neuron. This then transfers the message to a motor neuron. This then carries the message to an effector, such as a muscle, which causes the muscle to contract and, hence, causes the knee to move or jerk.