Welcome to the forum New guy
Waht car is it, make and model and year?
Does the transmission shift into the other gears and reverse properly?
Can you shift in and out of fifth while stationary. That is, with the engine running, if you depress the clutch, shift into 5th and very slowly release the clutch that the engine will stall or the car start to move? and if so you can shift out of fifth again into neutral ok?
Assuming this is a normal 5th gear pattern ( 5th up and to the right, did you try shifting into 5th from 3rd, thats is, down into neutral, across rightwards and up into fifth? I am assuming that your normal shift was 4th into fifth.
depending on the make of car, someone will be along to help more.