Internally geared hub motor life is in miles rather than years, but it's very variable, some give way at a few thousand miles while others of the same brand can run for tens of thousands.
Variables like motor internal alignment, greasing and how used, plus climate, dust pollution, dampness...