So you can't connect to your wifi through phone but all other devices work on it correct.
before doing factory reset try updating ur software on phone if you haven't already. Did you update phone recently?. This could also be a problem if so back up phone and try removing update. Try that if nothing you might have no choice but to do a reset.
Those who don't die fight forever.