A pendulum swings from side to side. At one extreme, the bob is a little higher and has potential energy. When it is swinging in the centre, it has kinetic energy. This interchange of energy continues until friction damps the oscillation.
In the case of a tuned circuit, energy is interchanged...