Where the heck did you get a cable that can't charge? Unless you mean it can't go over 60 watts?
If the above isn't true for your particular cable, it's either broken or what you're trying to do isn't specified by USB-C but rather some proprietary tech instead, in which case, blame your device vendor.
I am trying to keep up with these spec details for a cable that is often marketed as just USB-C... it feels like an unnecessary cognitive load.