I had a problem like that once, had spark, compression and fuel but
the engine would not even fire. The problem was the flywheel nut had
loosened which caused the flywheel to shear the key which put the
timing out, it might be worth checking.