Pain may be unpleasant, but in most cases it plays a vital, even lifesaving, role. Short bursts of pain act…