Assuming your tractor electrical system is still positive ground, you can run a jumper from the battery negative to the light terminal of the non-working headlight or taillight. If the bulbs are good and it still does not work, the likely cause is corrosion. Remember the lights use their metal housing to make a ground connection to complete the circuit. So any corrosion on the bolted connection of the light housing to the bracket/tractor frame must also be clean.