As SciAm's Ferris Jabr explains in the video up top, the short answer is: nociceptors. Many animals have these sensory neurons. Some animals have weird ones. Take naked mole rats, for example — NMRs have mutated sodium channels that limit physiologically "normal" nociceptor firing, thereby blunting sensations of pain