The reason why you might have a stomachache and headache at the same is because you might have eaten a lot and forgot to go to the bathroom. The thing that you should do is to either way take a ibuprofen so that way it could kill your pain or othet medicines that you think would help you kill the pain.And if you are having a headache and a stomachache feel better:) Hope this really helps:)