One of the reasons for the absence or incomplete charging of the battery is a partial or complete failure of the generator.
In this case, you have to remove the generator and check and repair.
Replace the hub bearing when play appears.
Bearing wear can be identified by increased noise when driving.