Mohamed-alwajih wrote:
Well I tried what katana-san already and the vpn is not working due to the connectivity problem on my phone
So, the answer is yes, you do have a VPN installed on your phone. And there is your problem. GET RID of the VPN completely and your Wifi connection issues will go away. VPN on iPhone is completely NOT needed and causes connectivity issues. VPN does NOT provide the security you think it does. In fact, most VPNs track your every move and sell your data to anyone willing to pay for it.
Go to Settings > General > VPN & Device Management and delete the VPN profile from your phone. Remove any VPN App you have. Then Restart your phone and you'll be able to connect to Wifi again. You couldn't pay me to put a VPN on my iPhone.