Why a phone stops charging
Charging needs four things to work: a live socket, a working adapter, a working cable, and a clean port that lets the plug make full contact. Most problems are in one of those. Inside the phone, the battery, the charging port or a charging chip can also fail, and software can occasionally stop charging until the phone is restarted.
Battery wear is gradual. If a phone charges normally but the battery drains much faster than it used to, check the battery health in settings: the battery may need replacing, but that is a different fault from not charging at all.
Chargers and cables
Use the charger from your phone's maker, or a certified one from a reputable brand. Cheap, uncertified chargers can charge slowly, cause the screen to behave oddly while plugged in, or damage the phone. In India and the US alike, a charger rated for your phone's charging standard (such as USB Power Delivery for many recent phones) charges faster and more reliably than an old low-power adapter.
Before you take it in for repair
Back up your phone if it still turns on. Note the model, which chargers you tried, whether a charging icon or light appears, and whether the phone was dropped or got wet. A repair shop or service centre can then test the port and battery directly.