If you updated your 2G iphone to 3.1.3 and you need to jailbreak then you need 3.1.2 version to jailbreak your iphone...Use any version of resnow great then 8.0
You also need boot loader files to unlock your phone....If your want full tutorial then please go to iClarified - Apple News and Tutorials
BR