feels like period cramps??

The past week I've been having these pains in my stomach they feel like period cramps and then they go away I didn't have them at all yesterday but the day before and the day before that, does anyone know why? I'm also 29 weeks