Am I going into labor?

I'm 40w 1d. For the last day and a half I've had lower back cramping. Tonight I can't sleep because of the back cramps and newly lower abdominal cramping. I'm not sure if these are contractions or just a sign labor may be coming....will I know? I suddenly feel super gassy too!