If you suspect that water damage is the cause, turn off your iPhone immediately and let it dry for at least 48 hours before attempting to use it again. If the issue persists, take your device to an Apple Store or an authorized service center for professional assistance.