If the battery suddenly stops working, it may require replacement under warranty.
If the battery drains quickly or its capacity decreases, this may be a sign of a malfunction.
If the battery does not charge or does not charge fully, this also requires consideration under warranty.