clean the connector slot of the phone there would be dirt and moisture there ,which is shorting the charger and you are facing that problem. if cleaning does not solve the problem you might have to take the phone to service station and get it cleaned from inside.