You can try removing and replacing the battery, but something in the charging system may be faulty, among other possibilities. Try a full Power Off, then boot into Recovery if you can, and do a Cache Partition wipe.