Iphone 3gs won't charge unless turned off?

I have a iphone 3gs and the other day i broke the lcd screen and the digitizer, but the phone still synced
with itunes then when i went to bed and put it on charge it never beeped or the lightning bolt never appeared, but i noticed it would only charge when powered off. And now itunes does not detect the phone and i get a windows does not recognise connected device error, i have also tried in dfu mode, i also seem to lose service, the phone is jailbroken so can't restore from on the device and i have no warranty so can't send it to apple. Do you think if i replace the charging dock it will charge again or not. Please if this has happened to you or if you have any suggestions can you share your advice all help will be truly appreciated

Other things may of broken along with the LCD screen and digitiser. Take it to a shop to get checked out and see what is causing the problem, probably your best chance taking it to a professional.