abdominal pains in different places at different times

Sometimes its in the stomach and its burning other times it resides to left side or the right side of my abdomen. I also get back pain. I tend to frequently suffer from constipation and diarrhea for more than 3 years. I'm 18 and I was told that fo young women having abdominal pains was normal before starting your periods. But i just wants to know other peoples take on it.

I am a man so I don't know about the period but it could be ibs and for sure it's nothing serious

Sounds like IBS.  See your doctor again for tests and diagnosis.