Can't connect to Wi-Fi Iphone 5?

When I try to connect to my wi-fi network my phone tries to connect for like 3 seconds then just gives up, I tried to reset network settings, restart the phone, restart the router, reset my phone completly, and still doesn't work.

Open Google Chrome.Go Menu (three dots)./ Settings / Privacy.Tap on Clear Browsing History (everything should be checked). Tap on Clear Data, tap again Clear
Restart phone. Now try to connect to Wi-Fi

How to connect your device to a Wi-Fi network, including open, secure, and hidden networks.

1. Connect to a Wi-Fi network
From your Home screen, go to Settings > Wi-Fi.
Turn on Wi-Fi.
Your device will automatically search for available Wi-Fi networks.
Tap the name of the Wi-Fi network that you want to join.
After you join the network, you'll see Checkmark next to the network and Wi-Fi connected in the upper-left corner of your display.

2. Connect to a secure Wi-Fi network
Secure Wi-Fi networks are password-protected and have Lock by their names.

Go to Settings > Wi-Fi, and make sure Wi-Fi is turned on.
Tap the name of the secure Wi-Fi network you want to join.
Enter the password for the secure Wi-Fi network, then tap Join. If you can't tap Join, the password you've entered is incorrect.
After you join the network, you'll see Checkmark next to the network and Wi-Fi connected in the upper-left side of your display.

3. Connect to a hidden Wi-Fi network
Hidden networks won't appear in your list of available networks, so you'll need to know the exact name of the network to join it.

Go to Settings > Wi-Fi, and make sure Wi-Fi is turned on. Then tap Other.
Enter the exact name of the network, then tap Security.
Choose the security type. Not all hidden networks are secure.

Tap Other Network to return to the previous screen.
Enter the network password in the Password field, then tap Join.

After you join the network, you'll see Check mark next to the network and Wi-Fi connected in the upper-left side of your display.

If you are unsure of your network password, perforrm the following on a computer hooked up to your network.

CMD in Admin mode
type:

netsh wlan show profiles
press enter find Wi-Fi
copy down profile number
press enter
netsh wlan show profile Linksys26746 key=clear press enter
key content is the password

Hope this helps,
d.tcom