So with the tractor motor off is moves freely, with the engine running you cannot move from Forward to reverse or the opposite.
This could be a clutch pedal adjustment issue, if you have a PTO it will have a dual stage clutch, where as when you first press it allows to change gears, then second...