Is your battery removable? If yes, remove the battery, use a soft cotton cloth to wipe the contact sheet copper of the battery, and install it back to your phone. Charge your phone for 30 minutes and check whether the charging is not displayed due to low battery power.