When an electron gains a higher level of energy, the atom then moves from the ground state to the excited state.
An excited state is the condition of an atom whose electrons are at higher energy levels than the ones they usually occupy.
Anyhoo, even though the electron has moved to a higher energy level, the atom is now energetically unstable because it
holds all different kinds of energy, now. So, the atom will not stay in an excited state for too long.
Electrons move to lower levels very fast.