Once done, place the AirPods and the charging case (with the lid open) on a clean, dry cloth, preferably in a warm, non-humid area, for at least one day before you try to start using them again. Alternatively, you can place them in a box with silica gel packets. After a day, try putting the earbuds back in the case, connecting them to your iPhone, and playing something.
However, if your AirPods don’t answer, which might imply severe damage, don’t try anything else on them. Take them to the nearest Apple Store and ask the technician to scrutinize the device. If they could better with some repairs, the executive will educate you about the costs involved.
Although the limited warranty doesn’t cover accidental damage, an AppleCare+ subscription allows you to get the repairs at a lesser price for two yearly incidents. If repairs are of no use, you can exchange your AirPods, too. The Apple Store executive will guide you about the next best step.