Water damage. Try a factory reset, but it's likely the sleep/wake button or another internal piece.
open