How to get my iPhone 4s to connect to Wi-Fi?

I have an iPhone 4s (iOS 8.0.2) and it won't connect to Wi-Fi. It actually does "connect" like it will show it in the Wi-Fi section in settings and at the top of my phone, but it won't actually register that it has Wi-Fi. I tried to use my 4g and the same problem. Recently, I had used my personal hotspot and connected 3 devices. If anyone has anything please let me know!

It is not your phone. It is your internet.

Have you rebooted your phone? Hold down the home and sleep buttons until the screen goes dark and the apple logo pops up. If that doesn't work try going to settings>general>reset>reset network settings