From a Darwinian perspective, it is clear what pain is doing. It's a warning: 'Don't do that again.' If you burn yourself, you're never going to pick up a live coal again.
Dawkins, Richard. The Greatest Show on Earth: The Evidence for Evolution. Free Press, 2009, p. 392.
Sourced by: Quote.org sourced