If it sat for a few months, without being run, I would check to see if you have bad gas, varnish deposits, or even water in your gas, or oil. Why not start with the simple things, first? Get some
SeaFoam, or similar gas additive which will absorb water, and dissolve varnish deposits within the fuel system. I would also check the oil to see if it is contaminated with water (has milky white stuff in it); again, if you can get
SeaFoam, follow directions, and add it to the crankcase (will absorb water, dissolve varnish and carbon deposits within the engine and the transmission -- change the oil
and filter as soon as it darkens; usually it will turn black within minutes, if the engine has never been treated before). If you can't get
SeaFoam, run the engine until the oil gets to above 212 F/100 C, to ensure it will boil off any water within it. Be careful not to let the engine idle too long, as you never want the oil to go above 250 F...
If none of that helps, then go for the compression check, and beyond. Cheers!
1979 CB750K (sold, 2012, but not forgotten)
1983 Kawasaki 440 LTD Belt Drive (sold, 2011)
1993 Kawasaki Voyager XII