Probably a stupid question

But what is the difference between contractions and baby movement? Like sometimes my belly will get really hard and sort of painful but I will still see the baby moving. Are baby movements painful at this stage? I’m going on 36 weeks on Tuesday.