It's hard to tell the quality of these enclosed barrel jack sockets. Switchcraft branded should be as good as any available. I've replaced quite a few including Warwick basses. 27 years is good going and the new replacement will not likely last as long! You can't open them up to inspect or repair them and peering inside with a torch, it looks like the contacts are very narrow and likely loose their springiness over time which results in intermittent connection. Access to the barrel securing nut is usually the biggest issue, finding a suitable spanner the correct size that you can actually get in the control cavity. Make sure the soldered connections are good and some insulating sleeving is a good idea which also provides some mechanical strain relief, especially for the wire going directly to the battery clip.