What voltage does your battery have before connecting it?
A 36v battery should be about 42v full. If it's not, then either your charger isn't charging it, or the battery has a problem inside (usually failing cells causing the BMS to prevent charging or discharging, to help prevent further cell damage that can cause a fire).
What happened before the problem started?