Negative thinking and pain