Does it make a grinding sound when you try it?
Does it go into 1st, 2nd, and 3rd OK?
If it is gear grinding it is probably a clutch that needs adjusting.
If it doesn’t grind and the shift lever feels like it is hitting a block, there is probably something wrong in the transmission. Probably something wrong with the shift fork.
Easy enough to pop the top cover off and have a look.