Modern ways of thinking about pain emphasise its protective effect – the way it grabs your attention and compels you to change your behaviour to keep a body part safe