A. Restart your WiFi router by unplugging it for 10 seconds and then plugging it back in. This can resolve connectivity issues.
B. Forget the WiFi network on your iPhone and reconnect. Go to Settings > Wi-Fi, tap the 'i' next to your network, select 'Forget This Network', and then reconnect by entering the password.