Error 28 is a hardware error from the USB. You can fix this by going to a previous version of iTunes (google for iTunes 8) and restoring in DFU mode. You can also fix this by downgrading to 2.2.1 (only from what I've read, not sure about this fix). However, the broken dock may prevent you from even doing that. You might have to take it apart and replace it.