If you want to read about this topic, our recommendation is to look at "The Brain That Changes Itself" by Dr Norman Doidge. In his book, Dr Doidge tells a number of stories which provide real live evidence of how the brain is where all experience is reflected, including the chronic pain experience.
Dr Chris Hayes: How the brain can change
Dee lives with chronic pain and when she and Coralie got together, the subject of habitual approaches to doing a regular activity arose. Dee loves riding her bike and was using her sore foot to mount her bike - all without thinking. This is a very practical example of how the brain creates neural networks that are involved in pain - and how important it is to challenge these as we learn to unwind and break up pain networks in the brain. Its all about "Neuroplasticity".