Thank you all for your support and kindness, looks like I joined the right forum!
The gun elevation gearbox is fine, it's the turret rotation gearbox that's got a damaged gear.
I shall have another look at the gun and see if I can find out what the problem is.