So, the bike sat for years, but the previous owner had it running a month or so ago when I bought it. Now I can't get it started again.
Brand new plugs and I tested and I am getting a spark.
If the motronic had an issue, would I be getting a spark in the first place?
By all means it is much easier to pull the plugs than the rail, and if they are wet with fuel, then they are fouled and will need to be replaced.
And if the plugs are wet, then fuel is getting past the injectors--maybe they are stuck open and flooding the cylinders with too much fuel and it is too rich to start. You will have to pull the rail to troubleshoot if the injectors are stuck open.
It's probably not likely that the previous owner might have spiked the intake with some fuel in the airbox just to get it to run and get it sold, but it wouldn't be the first time that sort of thing has been done...
No. if the Motronic had an issue it wouldn't be firing the ignition (so that tells me that the hall sensors (crank trigger) are working).
But if the engine temp or intake air temp or engine speed sensors are not working then Motronics will not pulse the fuel injectors. If you measure a voltage pulse at the injectors connector then the motronic is trying to work, which implies all the required sensors are working to allow it to start. Other sensor failures can cause a limp-home mode when running, but it will still start.
So if it is firing spark and is pulsing voltage at the injector connectors and still not starting, then it may not actually be getting fuel thru the injectors. Either the rail has no pressure (fuel pump) or the injectors are open circuit or the injectors are clogged.
Measure fuel rail pressure, if okay then you can measure the electrical resistance of the injectors to determine if they are open circuit. If they measure within spec then you have to pull the rail to troubleshoot possible clogging of the injectors.
Or the motor is worn out and has low compression (leaky rings) and will not start even with fuel and spark present... (do a compression check)