I accidentally restored my iPhone?

I was on iTunes with my iPhone 4S when I accidentally pressed to restore it. I lost all my messages, pictures, contacts, etc. Is there any way I could get them back?

If you have your iPhone set to automatically back up when it's synced to your iTunes you will be able to get everything back, if not, then nope (if you didn't you will be able to back up whatever was synced to your iCloud account like: Email, Contacts, Calendar Info, Reminders, Safari bookmarks, Notes, Pass book, Documents & Data & Find My iPhone

To load the backed up iTunes information onto your iPhone:
1) Plug your iPhone into your computer's USB using the provided cable
2) Open up iTunes
3) Right Click on your iPhone in the Device menu
4) Click on Restore from back up this will allow you to resync all the information you're able to from whenever you last backed up your iPhone