You have to diagnose. You gave us nothing to work with, here. I'm good, but I am not psychic.
If you have a low battery, trying to charge it with the bike's charging system is a bad idea, and can actually cook the charging system.
Consult the service manual. If you don't have one, spend two minutes with your friend Google, and find one that you can download.
There is a procedure for diagnosing charging system problems. First, you have to start with a fully charged battery. You cannot get a legitimate test of the charging system unless your battery is fully charged. Charge it with some sort of battery maintainer like Battery Tender. Once you get the green light, disconnect the charger. Let the battery "settle" for 12 hours. Measure the voltage. It should be 12.6 V or higher. If it isn't, the battery is bad.
Once you have a fully charged, good battery, start the bike. Put a voltmeter on the battery. With the engine reving a little, (like around 2,500 rpm,) You should read at least 13 V. (Even that is on the low side of acceptable.) If you are not getting 13 V or more, your charging system needs repair.