You can isolate the issue by...
Disconnect it from the drive. Shift it, if not change, the issue is in the cable or the shifter. Disconnect it from the shifter, if the shifter is smooth, you need a cable.
They fail somewhat common as you cannot lubricate them. Once they get moisture in them, the are bound to fail as the inner metal parts start to rust...