Maybe its battery failed, and during the power off it turned back to default settings. Login to your router via lan, and check the settings. But honestly, if that happened, it should have lost the wan username/password either, so there shouldn't be internet at all.