Is it a power problem or data , or both
Have you tried different cables ?
Depends to some extent on the type of USB cable as some are ;
Data and supply,
Supply only, usually found on rechargeable items, like torches,
Very occasionally data only,
Also some cables wear very quickly, and wires break under the insulation.
Just some thoughts,
Rgds