This can happen when one becomes partly conscious during the dreaming state. During the dream state, muscles become suppressed not giving to movement.