Okay, my problem is fixed.
I flashed the sequans modem again and I tested my code again. But it was still not working.
I wiggled the cable of the antenna a bit and it connected to the network!
I think the antenna of my gpy wasn’t connected properly or the antenna cable is broken or something.