If you can't connect to a Wi-Fi network that you could connect to before, it's possible that the network settings might have changed or the profile is corrupted. To fix this, remove (or "forget") the network connection, then reconnect to the network.