There are two very important causes which come to the mind after reading your symptoms.
Consult a gastroenterologist
and get investigations like colonoscopy
done along with other relevant investigations.
Once the diagnosis is made a proper treatment can be instituted.
There is nothing o worry as all these causes are completely treatable.