wont start on 2000 Mazda B2500

2000 Mazda B2500 wont start, but using starter fluid gets it going and runs fine until I shut it off. Each start up I need the starter fluid

Asked by for the 2000 Mazda B2500
your losing fuel rail pressure somehow.Change the filter to start with and go from there. you should check fuel injectors/fuel lines/fuel pump.I would stop using starting fluid on this motor!!! If you must use anything use carb/intake cleaner.
I changed fuel filter and pump seems to be working fine, but while checking for fuel problems i realized that I am not getting spark. I'm beginning to think that maybe its in the switch, at the clutch pedal. Coils have plenty of spark once its running and I have checked all fuses. Where else should I look