I have a iPhone 2g which was purchased from USA. The apple store here in India provides no support for the same!

I was caught unprepared in heavy rain and the iPhone got wet before i could take cover. I shook it dry, borrowed a dry cloth and wiped it dry but within 2 minutes it started saying "an unplugged device was connected" or something about "airplane mode".. and when i got back home the problems started..

Right now the headphone is not working, does not recognize that the headphones are connected, speakers are fine and power button trips automatically every second or two so the moment I unlock it and go to home screen the phone is locked again.

What can I do to fix it? Please advice