What is the difference between ground state and excited state electron configurations?
An electron can get excited and jump from a lower (ground) to a higher energy level if it absorbs an electromagnetic wave the energy of which corresponds to the energy difference between these two levels. It subsequently loses this energy by emitting it as light and falls back to the ground state.