My stang was having the same probem 2 or more months and i couldnt figure it out so i took it to th shop and they checked:Vacuum, fuel pressure, ecu, fuel pump and o2's. They couldn't figure it out. They said it was because i had my smog system off and it was causing the computer to be messed up. So i brought it home and put new wires, distributor, cap, and rotor. Didnt help. So i tried ne o2's. Still didnt help. I asked them if they checked the spark plugs and they said "No, but they are probably fine." I pulled the spark plugs out an 3 of them were completely fouled. They were gunked up to the point that i couldnt even see the electrode. Put new ones in and now it runs like a dream.