Yep, been there, done that.
Our hen Pokey laid eggs, brooded and hatched out a clutch of eggs, then in her middle years developed an internal infection that shut down her functioning ovary. Antibiotics cleared up the infection, but it took a year or so for her ovary to resume functioning...