Make sure that the WiFi module is working properly and by checking if you provided the correct credential for your network. In order to test the WiFi module of the board, you can use some of the example sketches from the WiFi Nina Library (Scan network, then SimpleWiFiWebServer). This way you can make sure that the WiFi module on the board is working properly.