Shifting
There are two possibilities for your problem. The first is that there is a fault in your transmission - bad news and I can't help you there. The other is more likely. If the sheath on the shifter cable has come adrift at either end the cable will not work properly as it has nothing to pull/push against. This can be hard to find as it is not obvious if the sheath is unattached. I assume you have checked that the cable itself is firmly attached to the levers at both ends. To check the sheaths, watch the end of the cable where it emerges from the sheath, first at the cockpit lever end then at the transmission end to see if it moves when someone else moves the cockpit shift lever back and forth. On TASHTEGO the shift and throttle cables are retained in the back of the cockpit lever assembly by brass pivoting clips with a little dimple detent to keep the clips closed. I have knocked them off loading and unloading the port cockpit locker once or twice (both times the throttle cable sheath) and the lack of control is eerie. The lever moves but sometimes something happens and sometimes not.