mkr nb 1500 sim card not connecting to nbaccess


I bought a mkr nb 1500 and i am trying to connect to my carrier which is Bell in saskatchewan canada.

i am trying this code to test if my sim is connected to the carrier but it seems like it is stuck at the if condition.

Can someone please help me how to make the mkrnb connect to the internet.

// Start module
// If your SIM has PIN, pass it as a parameter of begin() in quotes
while (!connected) {
if (nbAccess.begin(PINNUMBER) == NB_READY) {
connected = true;
Serial.println("now connected...");
} else {
Serial.println("Not connected");

Thank you