Electrical Energy is defined as the form of energy which is caused by the movement of the electrons from one point to another, then such type of energy is called electrical energy.
In other words, electrical energy is nothing but the work done by the moving electrons or charges in the electric field.
As we explained above Energy is the ability to do work or apply a force to move an object from one position to another. So in the case of electrical energy, that force is electrical attraction or repulsion force between the charged particles.
Electrical energy can be either potential energy or kinetic energy. But it's usually encountered as potential energy, which is energy stored due to the relative positions of charged particles in the electric fields. The movement of charged particles through a conducting medium (conductors or wires) is called Current Electricity.