i was trying from 5 minutes. sudden I get burning smell. i have huwaei y3 2017. now it is working perfect but not connect to any charger why? is this AC has burnt? or it has issue with charging pin?
You have a lose connection causing a short somewhere. I personally wouldn't use the phone until you can take it, the cable, and charger to a shop for a proper evaluation. You are posing a fire risk if you keep trying to use it.
Welcome to Android Central! I agree with the above, but would also suggest inspecting the phone's port as well as the plug to see if there's any debris in there.