Then when i connected it, itunes said to restore it
After updating my iphone it says to connect to itunes?
Probably, there was an error while upgrading. Connect to iTunes, choose restore and wait for it to download and install iOS. Please note that if you don't have a backup on iCloud or iTunes all your data will be lost. When the iPhone turns on, you'll see the activation screen. Do the steps as if it was a new iPhone and when you see restore from backup, choose iCloud if you have a backup on iCloud; iTunes if you have a backup on your PC (you'll need to connect to your pc) or New iPhone if you don't have a backup. After this, it should work fine.