The brain's activity is slow down through sleeping pills. The brain's processes that determine wakefulness or REM sleep (the stage of sleep in which dreams happen) are slowed down through sleeping pills. As time passes, this could lead to a gradual increase in drowsiness until the person eventually sleeps.
Navigate to this site to get a useful content on sleeping pills.