A capacitor stores electrical energy in the form of electric field because the DC source creates and excess of electrons on the negative plate and a shortage of electrons on the positive plate. The electrostatic attraction between the positive and negative charges keeps the charge intact in the capacitor, even when the voltage source is removed.