Pain can develop from spinal problems, joint problems, neurological diseases such as multiple sclerosis (MS), cancer, migraine, fibromyalgia and inflammatory diseases, among others. Psychological factors can also have an impact where, for example, depression and anxiety can cause pain to continue.