I would like to know your age and how long you have been suffering ?
Although some more information is needed to conclude,with the available information it seems like
(Irritable Bowel syndrome
).But certainly you should see a Gastroenterologist to R/O more serious disease
Wish you Good Luck