You have two issues, the struts and the liftgate rod. The liftgate rod is what is causing the moaning and groaning, and good news, it's usually not the motor and much less expensive (~$150 instead of $500). You'll still need to replace the struts to get it to open and stay up. Here are directions on the liftgate rod: https://www.justanswer.com/ford/3xeha-cylinder-operates-power-liftgate-just-started.html