Something is creating a high resistance preventing the current from flowing. Look at the plugs/sockets. Also the battery may be in a nearly discharged situation where it shows 12 v when no power is being drawn from it but the voltage drops dramatically when trying to power something. This is the most likely reason. Is the charger working properly?
HTC U12 Plus review: Hands-on