Pain is a complex protective mechanism. It is an essential part of evolution that protects the body from danger and harm. The body has pain receptors that are attached to 2 main types of nerves that detect danger. One nerve type relay message quickly, causing sharp, sudden pain. The other relays messages slowly, causing a dull, throbbing pain.