You have to find out what version you have. The oldest the version the easier it is to unlock it.
If you have a newer version, you have to format it to an older version and go from there.
I don't know much about it, but my father's played around with all of that and told me about it. I'm sure you'll find all the answers in an iPhone forum.
- Erick