Nociception:

the processing of noxious/painful sensations by the nervous system, initiated by the stimulation of specialized receptors called nociceptors.