Ok if it was running fine then it should be relatively easy to get it running again.
Since it is new to you I will start with basic information.
It is diesel so has no ignition system. It runs on diesel fuel, not gas (which I see in your post but this is a misspelled word). But gas won’t get a diesel to run so don’t put any gas in the tank!
I assume you probably know how to start it but will go through the steps (assuming it is still wired up like it came from the factory- which is a BIG assumption).
Turn key to first position (run position) There are two additional positions for headlights low then high.
Set the fuel lever back (pull to rear) about half way (just to be sure).
Push the clutch pedal down.
Turn the knob (on right side of dash) to the left and hold it there. Turns on glow plugs.
Count off a good 10 seconds.
Before you get to 10, pull out the decompression knob (black choke looking knob on the left side of dash).
Release the glow plugs and then turn same knob to right to crank the engine (and also power the glow plugs).
Engine should spin at a fast speed and then release (push in) the decompression knob.
Engine should fire off quickly.
Adjust throttle to idle
I suggest you will probably need to clean all ends of both battery cables (4 total ends), maybe replace the battery, maybe replace the starter, maybe adjust and lubricate the decompression mechanism on front of engine, maybe inspect the glow plug circuit and replace the glow plugs and indicator. You may want to replace the air filter.
If your tractor has a different wiring scheme (wiring is hacked up), take some pictures of the dash for advice.