Chosen Solution
i tried connecting it with the wifi but it shows it’s not in range when it actually is
Have you tried to connecting to other networks say a public wifi like McDonald’s? If it is not seeing any wifi regardless of where you go then it sounds like the wifi on the phone has gone bad. If it can connect to wireless networks in other areas, but not yours at home then there is some kind of conflict between your device and your wireless router.