What causes pain and how does it become chronic?