Constipation cramps !!

Chagnon
Had anyone tried magnesium citrate does it work? does it cause bad cramping im in so much pain from not having a bowel my stomach cramps so bad and has sharp pains from not being able to use to bathroom 15 weeks pregnant