In more meaningful words than the ones above, how does adding energy to the EM field cause the electron to to change orbitals or oscillate in a different pattern.
Here one is using two frameworks, the classical and the quantum mechanical. The classical electromagnetic field is composed by an enormous number of photons each with energy=h*nu, nu the frequency of the electromagnetic field.
The electron is an elementary particle, a quantum mechanical entity. It interacts with photons via a well prescribed mathematically calculational mechanism , the Feynman diagrams.
The electron may be free, and then it can scatter with a photon and take part of its energy or have even more complicated interactions, but since you are framing your question in EM fields , this is another story.
Electrons bound in free atoms can be kicked up to higher energy levels by a photon with the correct energy. Electrons in a solid are also bound but complicated potentials exist which may allow many energy levels common to the solid to the point of seeming continuous.
An EM field with the appropriate energy may move the electrons around in allowed orbitals for the solid which may have different manifestations in the solid than it had before being exposed to the said EM field, as oscillations because of different collective orbitals