Hi, many thanks for the query!
It seems that you are having IBS
You need to do certain investigations- Stool (Microscopy & Culture), CBC, LFT, ESR, Hydrogen Breath Test
, USG (Abdo-Pelvis).
Most common cause behind IBS is "Stress", so I will advice you to do Yoga
, regular exercise.
Treatment as per the reports with your doctor's opinion.
Eat high fibre diet, avoid milk & milk products, take antispasmodics, antibiotics, pre- & pro-biotics, stool softners with your doctor's opinion.
Drink plenty of water (preferably ORS).
Wish you a good health.