i just purchased a 1997 ford f150 with the 5.4 triton on 1997 Ford F-150

and bringing it home it started loosing acceleration and started jolting and chugging badly it did it worse going up hill it seems to be firing on 4 cyl it seems like check engine light flashes 3 times and stays on any ideas

Asked by for the 1997 Ford F-150
start with new ignition system(new ignition cables, new spark plugs). actually first have fuel filter pulled and see if any water in fuel.