The important part of sleep is the REM-phase, the phase during which you dream. This phase is necessary for your brain to sort information and basically "reboot" for the next day. An inadequate amount of REM sleep is usually to blame for a lack of energy.
REM sleep comes in cycles, most people experience 10 phases or so of it a night (I believe, from memory).