How do I time contractions?

I’m a ftm and really don’t know what to expect. All of a sudden I started getting pain in my sides and my back hurts a little bit and my stomach is getting hard I’m 36+2 weeks pregnant