You have to use pwnagetool or redsn0w to upgrade your baseband to 06.15.00. Then you can unlock with ultrasn0w. Unfortunately this results in loss of GPS ...
The iPhone Dev Team is promising a software unlock for the iPhone 3G by the end of 2008. There are ways to manipulate the SIM card that comes with the iPhone 3G to use it on the network of your choice ...