jailbreakqa.com is a good place to start - found this doing a quick Google search.
reset all settings problem - JailbreakQA
Basically, if you do a Erase All Content and Settings you're essentially resetting your phone to a factory condition. Once you do that, the phone will get stuck in a infinite reboot cycle because the iOS file system is re-arranged when a jailbreak is applied. The phone can't find files where they should be and then can't boot.