Taking Control of Your Dream
The term for this phenomenon is "lucid dreaming". It is common to have some lucid dreaming experiences, but different people have different occurrence rates of lucid vs non-lucid dreams, and the level of "control" varies as well.

A previous SE Q&amp;A addresses some of the possible influences on lucid dreaming including the potential to learn to have more lucid dreams as a skill.