How would I unlock an iPhone 5 to which I have forgotten the pass code?

I have an iPhone 5 and I forgot the pass code to it. I want to be able to unlock it with out paying money. I was hoping I can hook it up to the computer easily. The phone has been disabled from so many failed attempts of trying to get in.

You should just beable to refresh all the software on it and reset it back to factory settings hopefully you have a back up to iCloud