Unplug earphones, and tap it against a hard surface a few times with the earphones jack down. Then put it somewhere that's dry and room temperature for about a week before attempting to connect it...
Some people have gotten good results by putting a washed shuffle in a plastic bag filled with dry rice and leaving it there a few days. The theory is that the rice will soak up the moisture.