Bad gas in a Honda Accord? What to do...?

If the ignition system is wet, would it start? It cranked and started every time, but stalls when I’m at a stop (like at a stoplight). It restarts without difficulty.

If the ignition system is the problem, how costly is that to fix?