2000 Ford Ranger v6 4.0 ltr, my tuck started to cut out and die?

I flushed the cooling system and then filled it with water and cleaner, then ran it for about 10 minutes then let it cool, then I drained it and filled it with new coolant; I ran it to get it warm an then it started to die, almost like its not getting enough air or gas. I have no clue what happened or what could happen it seems pretty idiot proof to screw up I don't know what to do.

Ignition system probably got wet. Let everything dry up for a day or two and see if truck will work good.