Well I found my own solution online, so if anyone has this problem here's a solution:
Hold the eject button while you hit the magazine with the handle end of a screwdriver. I did this and the magazine ejected,and I put the magazine back in and it works perfectly now. Must have got jammed on the reset.