There can be many causes for this. The most likely culprit is simple indigestion, but it could also be due to anything from a stomach ulcer to brain damage.
You could have a diet too rich in fiber or you maybe lactose intolerant. Indigestion or any stomach woes can cause these symptoms. If it goes away it's probably nothing serious.