There are many effective medications to helps with migraines and back and neck pains. You might benefit from tricyclic or tetracyclic antidepressants that helps with multiple pain disorders as well. I hope you visit with your psychiatrist
to find out which one is best for you.
I hope this helps. Take care and have a lovely day !