I have bone pain and muscle spasm could these be related condition?

Yes. There could be toxicity in your body that is causing this. Cadmium poisoning gives bone pain with itai itai disease called ouch ouch as touching the bones anywhere is painful. Need to be involved with chelation of toxins. Find an acam doctor who does that near you.