The energy of an electron increases as it moves closer to the nucleus. The principal quantum number indicates the energy level of an electron. There are 3 energy sublevels in the second principal energy level. When an electron moves from a lower to a higher energy level, it absorbs a quantum of energy.