My iPhone is spazzing and i don't know what to do?

So today I put only the top part of my iPhone in the water (where the camera is) so I can take a photo, and it worked, it didn't get into any major holes and I took some really cool photos underwater. So about an hour later my phone randomly goes into sleep mode and asking to "slide to power off" like something messed up the turn off button on the top of the phone (this is a 5s) and i don't know what to do, sometimes it's not so bad but other times it shuts off every 5 seconds. Is there a way to disable the top button or am I gonna have to live with this?

Take it to the iPhone store

Not waterproof. Put in a bag of rice with power off for 24 hours

  • Why does my iphone 5 keep spazzing out? Okay well three days ago I dropped my phone and It fell. This cause the screen to have cracks but it was still working fine. I went to a place in the mall call cell plus for them to repair it. The guy did repair it and when I got it the phone was fine but when I soon arrived home it started glitching and spazzing out. I can't even type in my password without it pressing random and numbers and on my homescreen it touches random things. I don't know what to do so people help
  • People that buy iphones don't know anything about technology did you know that? Like my friend just brought iphone and I asked him if it has 4g late he said what's that? Then I asked how fast is the processor like 1.2 dual people buy them because its more mainstream and because their friends have iPhones Samsung is way better based on specs and technology the iPhone 4s and 4 processors are very slow
  • My iPhone 5s keeps spazzing out after I replaced the screen? I used to have an iPhone5 but after I broke the screen, it started to spazz out, open apps without me touching it, would open something completely different to what I had tapped to open. I decided the phone was no good, so I got my old iPhone 5s repaired (also had a damaged screen) so I repaired the screen and now this iPhone5s is doing the exact same as my old iphone5! Does anyone know why my phone keeps spazzing out?
  • My iPhone 5c keeps spazzing out after a brand new digitizer? I just replaced the digitizer on my iPhone 5c and if I touch the screen it keeps spazzing out like some one is touching all over the screen… I got it off eBay for like 40 bucks and it doesn't do it every second but like every 10 minutes and I can't deal with it! And there's no way I wanna pay 200$ for a new phone… Any ideahs on what it is or how to fix it? And it stops when I lock the phone and unlock it