Bryan,
It appears that you have a 50B fitted with a Perkins 4-236 engine,the pump drives on all massey 50 series up to the hxt series gave trouble with the shaft splines wearing so it will need to be investigated, check the manufacturers date on the front of the pump and if it is similar to the machine manufacture then it is a problem that needs to be addressed.If you do have to change the pump be
sure you use the 50HX cast iron one.
Now it also looks to me that the slew motor was off or changed,note the different colour,
If I am right then and the pot was changed they may not have put in down in the correct position resulting in the slew working one way properly and restricted the other.
This photo would suggest this issue,but the internal splines on this king post also wear and give a lot of lateral play on the backhoe. Where this weld is broken is a hardened steel insert in a cast steel lump,the only successes I had in welding them was to clean them well,root weld with a 29.9 rod capped off with a good shot of 7018 but ultimately the king post will need to be changed depending on the use/ abuse it gets.
Just to note the series 2 50B back hoe assembly will fit but not the 50d.the mountings are different but all other components rams slew pot etc are the same.
Just watch the dropshaft for the steering as these wore along with the bushes resulting in intermittent power assisted steering, on this point the components are all the same as the 1 series tractor,but the orbital steering unit from the 590 series tractor can be fitted,but requires mechanical steering components apart from the ram being removed to make it fully hydrostatic.
Finally if there is too much wear on the bottom boom pin at the king post they break the top off the backhoe lifting ram just a note............
Stock