There are several conditions that have to be met before an engine can fire up. Fuel pressure, spark at the spark plug, spark has to be on time, Compression, intake air and exhaust. Need to check on these conditions before replacing components, it can get expensive.I would start by checking fuel pressure at rail and compression test.
Search Ford F-150 Questions
Ford F-150 Experts