constant lower left groin/abdominal pain, lower back pain, inability to gain weight, diarrhea/gassiness

Hi, i'm 23 years old male and i've been having this symptoms for a while now. The pain went away for a few months after i saw
doctor who told me that the abdominal pain was linked to my back pain. That lead me to believe that all is part of my psyche.