Im. Havibg a muscle spasim under left rib cage it hurts and I gave to stetch and move ti get rid of. It what coukd it be?

Dehydration. Common causes of muscle spasms are dehydration and not having the correct vitamin/minerals around. I suggest drinking 6-8 glasses of water daily and avoiding caffeine and alcohol (they cause dehydration) and adding a multivitamin/multimineral supplement daily. Regular stretching or yoga can also help.