If you have your iPhone 3G/3GS flashed to iPad baseband 06.15.00 to retain the ultrasn0w unlock, and now somehow managed to make your phone unbootable here is the solution.
While trying to resurrect an Apple iPhone 3G stuck in a reboot loop at boot logo, I found that the only solution is to go for an factory unlock service and restore to the original iPhone iOS firmware with current modem version. Apple needs the correct baseband/modem version to enable the legal factory unlock via iTunes, and if you have the iPad baseband 06.15.00 it wont work. Here is a tutorial on how to downgrade the iPad baseband 06.15.00 to the correct one on Apple iPhone 3G.