The shift rod into the lower unit: it may be locked in place by crud/ corrosion.
The metal around the seal corrodes and swells locking the rod in place.
Unhook the linkage at the cable end, manually move the shift linkage( you need to spin the prop as you try to shift.
The linkage should move...