Geeez people I know you guys are new but there is a "SEARCH" button that you can use and type in your question there. It will give you as much answers you need. Also, when you ask these type of question, provide as your firmware and what OS you are using...
As for jailbreaking and unlocking, Use Quickpwn 2.2 (do a search). Here are the things you need to do...
1. Download the 2.2 Restore FW (YouTube is great source for these stuff)
2. Download Quickpwn 2.2
3. Download Bootloader 3.9 & 4.6
4. Download the latest iTunes
5. Restore your iPhone using iTunes to 2.2 and the rest you follow the step by step instructions on youtube