2007 400ex transmission issues

A couple weeks ago my 07 trx400ex started slipping from gear and at first I thought I was in neutral until I shifted down and I was in 3rd. The next time it happened, it was off the start and the quad came to a stop and died. I started it back up and it was in reverse and would not come out of reverse so I rode it home. I let it sit in the garage for a few days, when it came time to move it, I was able to click into neutral. So I started it, shifted to 1st then a full click up goes to neutral, then 3rd and 4th 5th and I was riding in 3rd around the yard and it haulted and dropped into reverse. And when I click out of reverse it simply doesn’t move. Please help.