If your Nintendo DS gets soaked in water, do not try to power it on immediately. Dry it as much as possible and let it sit in a dry, ventilated area.
If it still does not work, you may need to contact Nintendo or a repair service. In some cases, replacing the device may be the simplest option.