Do you have your iPhone set to automatically connect to any network? Check in network settings if you do. Toggle airplane mode as well and if that doesn't work take your Sim card out and back in. Then restart again. Do manual network selection then if it won't work and let the list populate (it'll take a minute) and see what you can connect to.