You probably need have a problem with the cable. It is a fairly easy job. Spend some time examining your old cable, check the operability, and measure it. The replacement is probably like mine. Below is a photo of the type I used.
But it could be that the remote control shift station. All of it needs to be inspected and repaired or maintained regularly.
Another opportunity to learn!