If the water isn't draining well, it could be root rots, in which case they're probably toast. Did you use garden soil in the pots, instead of potting mix? It's a common mistake, but unless you have a fast-draining sandy loam, it usually dooms your plants. Plants need air around their roots, not just water. Garden soil compacts too much in pots, all the air spaces get taken up by water. Root rots and plant pathogens take over in waterlogged soil, and most vegetables aren't adapted to survive in those conditions. You need coarse materials mixed into the potting mix to improve drainage. See my
Container Gardening Drainage page for more information.