The transition from one of these configurations to another is a quantum jump. If the second one has the greater energy (‘is a higher level’), the system must be supplied from outside with at least the difference of the two energies to make the transition possible. To a lower level it can change spontaneously, spending the surplus of energy in radiation.