I’m afraid that the rain might have finally killed your phone after all
Not all water damage is instant. The trapped humidity might have taken some time to corrode key components enough to finally make your phone unusable. That is my best guess at least.
Following @anon9989719’s suggestion to disassemble, dry and clean is worth a shot, more information here