Default [Q] [Problem] Can't connect USB and can't charge unless i reboot


A few days ago i tried to connect my phone to the computer but the computer started making connect and disconnect sounds repeatedly. The phone wasn't able to connect to the pc and it didn't charge. I tried another pc with the same result, i also tried other cables again with the same result. But the phone still charged when I connected it to the charger.

Last night however my phone also stopped charging(AC). It was 1% when i woke up and it refused to charge (tried different chargers/cables). I only got it to charge the second time i turned it off and connected the charger. So, the usb port does still work, sometimes when i shut the phone down.

Is anybody familiar with this problem or do you think it's a hardware problem and should I bring it to the store.