An atom in normal conditions refers when electrons are in the fundamental state. When you leave the atom, an electron absorbs energy from an external source and moves to a higher energy state.
Energy states or energy levels are called orbitals. The difference between the energy states in an atom is responsible for the emission of photons when an electron transition occurs between these two energy states.
Because the energy levels are discrete, the emitted photons also possess different energies.