Power steering pump, or gear/box?

^ This, a friend on mine had a 2000 Ram 2500 4x4 and the streering would lock up. We replaced everything in the steering system and it ended up being a ball joint.