Only charge when turned 📴 off

Welcome to Android Central! Can you give more details? Are you saying that when the phone is on and plugged into a wall outlet, that it doesn't show any signs of charging? Are you using the original charging cable and plug?