Sensation. After around 18 weeks, babies like to sleep in the womb while their mother is awake, since movement can rock them to sleep.
While you may not be aware of all movements, your fetus likely moves around 50 times or more in an hour. These movements don't necessarily mean that they're awake though — they move during both sleeping and waking cycles.
Does the baby sleep in the womb when the mother sleeps?