What is the treatment for abdominal colic?

I have had intermittent stomach pain and altering headaches. Why?