First, sounds like a weak battery. Chronic over- or under-charging can wreck one in far less than a year, so it isn't fair to assume it's good. The M's all have the Nissan "smart charging" setup which can go stupid from any number of small issues, from bad grounds to a bad battery current sensor. On an old ride the best solution is to bypass it. There's a whole 5-page thread in here about the problem and the solution, which is actually very easy:
howto-disable-ecm-controlled-alternator ... 6-120.html
Second, "won't start" is a nebulous description which doesn't provide enough info to be helpful. Does it cycle on-off without cranking when you press the button? Does it crank but not light off? Does it make one loud click, or a bevy of small ones? Do the lights dim or go out when it tries to crank?