Charging: charger, cable, outlet
Plug in the Mac and leave it for 15 minutes. Try a different outlet, check that the cable isn’t cut, and that the connector (MagSafe or USB-C) is clean. A small LED lighting up on the MagSafe connector is a good sign. A non-official or worn charger is a very common cause.
Tip: a borrowed charger that works = the problem was with yours.