2005 honda rancher 400 shift problems

I have a 2005 honda rancher 400 that has been having some shifting problems for quite awhile. It is always stuck in 1st gear and sputters while in reverse. I had — blink 12 times but couldn’t ever figure out what that was so I messed with a sensor and now am getting 6 blinks. Can someone please help!!
thanks