A knackered battery does do funny thing on these cars, so could just need replacing. A battery left for 5 months isn't gonna be in a good state.
However, sounds like it gone into limp mode if it won't let you rev. I would check the error codes and see what it says.
If you don't know how, look in the guides section for resetting the ECU and the procedure is in there.