ECU's don't fail that easily even after being submerged. Disassemble the ECU, and thoroughly dry the interior and connector. You can use a hair dryer.

Have your vehicle scanned for faults. You have to be sure that the ECU is dead before buying a replacement.