help please

im 19 weeks pregnant and my stomach and back hurt so bad i cant poop or pass gas. what can i do?