Well i was woundering what causes my truck to not get spark. It cranks on 1997 Ford F-150

I ran fine other day then died

Asked by for the 1997 Ford F-150
2 answers
check fuel pump. manual test is turn the ignition key and stop before it turns over. should be a sound come from the fuel tank. short whirring sound. thats fuel pump priming the line. should last 2 sec.s than cut off. no sound than no pump. if sound but last longer than 2sec.s, than fuel pump is laboured and failing.
check fuel filter. possibly clogged.
Are you sure it is not getting spark? How did you test for no spark?