Instructions on how to jailbreak and unlock your iPhone 3G on the iOS 4.2.1 firmware using RedSn0w for Mac. This tutorial can update your baseband if needed for unlock.
Apple has released iOS 11.0.3 bringing a fix for audio and haptic feedback issues and an issue where touch input stopped working on non-genuine displays.