LTSpice - Capacitor Charging/Discharging Circuit not working right
You must use two Pch FETS to make high side switches to charge and discharge.  







simulate this circuit &ndash; Schematic created using CircuitLab

Otherwise V discharge needs to be 2.5Vgs(th) greater than V+. for an Nch FET. This is often done in half bridges using low side PWM and a boost negative clamp cap ac coupled to a  diode to V+ to raise the gate driver voltage.

However this still may not do what you want.

How much energy do you need to move the solenoid depends on force and distance as well as current and time duration.

If your 6 Ohm load is 1 Henry, You might need  1 Farad to power it. Then if there is an opposing spring force , it will retract depending on the reactive:resistive time constant.