Most likely reason is the damper is broken somehow. As said by @Nathan, these are a replaceable part. I do not believe they are serviceable beyond replacement. Sourcing a replacement will be the problem, ad it may not be economic to do.
If you look at options, probably the best one is service the fork and ride it without the lockout. Adjust the air pressure to suit you riding. While lockout can be useful if you ride varied terrain (e.g. I use mine when I ride the roads to the MTB park, when its unlocked), you can use air pressure to set a compromise that will out perform a cheap coil fork, and if you terrain is mostly fairly consistent, set air pressure to suit.
Replacing the damper would only be worth it if the rest of the fork is in good condition and the damper can be sourced at reasonable cost. After 13 years with no service this is unlikely, although if you can find a donor bike/fork that matches, you may be able to use the damper from that one.
Replacing the fork with a new one is almost certainly uneconomic. The bike would have been classed entry level with RST fork, with the rest of the bike being entry level a new fork will likely cost more than the bike is worth. You may be able to pick up a donor bike fork from a recycle center or other sources. I know where I live a replacement fork for my well maintained, carbon 2010 Scott Spark would cost more than the bike is worth, and that was a $US4500 bike when new.
Replacing the bike might be the most economical solution. The broken lockout will reduce the current bikes sale value, but it is still a bike that can be ridden. Put finds raised form sale and funds you would need to replace the fork into a replacement bike.