My macbook isn't working properly
Haven't used my macbook for quite a while and I tried to open it last night, battery was drained so I tried to charge it for an hour but it shows it's charging but won't go up so then I decided to charge it overnight and it's still the same. Everytime i plug out the charger from it, it dies. I can only use it while it's plugged. What do I do and what happened to my macbook?
MacBook Air 13″, macOS 11.2