I just had a gastro endoscopy because I have been having chest pains, acid reflux heartburn and some pain in my stomach. I upped my medication to 2 40 mg of nexium a day with no help. My doctor told me I was have muscle spasms and to take valium 3 times a day. Can you tell me how the valium is going to calm my stomach?