How to restore my iPhone from iCloud or my computer?

Yesterday i completely set up my iPhone 5 as a new iPhone instead of restoring the old settings to it (Yeah I know stupid move) to install ios7. I backed everything up to my computer and to iCloud. Now that I realized I messed up I don't know what to do now. I plugged my phone back into my computer this morning because my apps were not loaded so it probably did an automatic back up to my computer replacing the one I did last night to my computer. I haven't touched iCloud as of yet but the main reason I'm doing this is because some of my social games don't have a login just basically ID numbers and i can't access them through FB because I never logged in with it and I really don't feel like starting the whole game over. I don't even know if iCloud backs up all your app data.

Go to Settings > General > Reset > Erase all content and settings

Download I cloud to your phone. If not there already. Put your email address and your password for it. You should be able to restore your settings and aps from there