Crank but No Start Condition there is sparks on 1999 Mazda B2500

The truck cranks,it wont start it has sparks. It seems all the problems are similar and changing fuel pump, crankshaft sensor, coils, fuel filter does not fix the no start problem. compression ok. there are no codes . Has anyone solved the mysterious not start problem

Asked by for the 1999 Mazda B2500
spray some starting fluid/ carb cleaner if it starts and runs for a while you have a fuel delivery issue, which case i would start checking for fuel pressure.