Default my battery is unkown

please can anyone help me
i rooted my phone with sarfestrap then i formated custom rom1 my mistake so my phone want charge so i charge him with factory cable so i can flash the phone and when i done and flash it he read the battery as unkown so i change the battery but the problem still