Whirlpool icemaker

My Whirlpool icemaker will not make any ice, but will dispense water and ice from my mother’s icemaker when I fill it up. What can be wrong? Do I need a new icemaker? Any advice will be appreciated.