Braxton hicks

Last night I was having cramps n my baby was moving but it was kinda hurting me when she would n my back was hurting I couldn't sleep. It would go away n come back. Is that Braxton hicks I'm 31 weeks n also how can I feel better