Not your common Shifting issue

Hi all this is my first post here. I have recently purchased a 09 Rancher 420 4×4 ES. The machine only goes into 5th gear. It sounds like the shift motor is trying to go into gear but won’t. It will not shift with the Manuel shifter either. I have replaced the angle sensor, cleaned the shift motor and put a brand new battery on it. What would be the next step y’all would try? Any help is appreciated thanks!