Answer
The energy stored by the capacitor increases.
Work Step by Step
We can write the general equation for the capacitance of a parallel-plate capacitor:
$C = \frac{\epsilon_0~A}{d}$
Note that $d$ is the plate separation.
If $d$ decreases, then the capacitance increases.
Since the capacitor is connected to a battery, the potential difference across the capacitor remains the same.
We can write a general expression for the energy $U$ stored by a capacitor:
$U = \frac{1}{2}CV^2$
Since $C$ increases while $V$ remains the same, the energy stored by the capacitor increases.