oil level in your gearbox is low.
5th gear got no oil and got hot, lost it's temper and now it's teeth.
at the moment there is rather a lot of shrapnel in your gearbox good news is most of it won't have done much damage yet, 5th can be easly changed and if shrapnel removed box will be fine, drive it and the shrapnel may trash the box