I'd like to note that nerve endings just send signal to the brain, where the experience of pain results from the processing of that signal. A nerve is neither necessary nor sufficient, e.g. phantom limb pain or heartbreak.