Sometimes hens will stop laying for various reasons. It doesn't mean they won't start back at some point.
Now, if it were me and they went a few months without laying an egg then I would eat them. On my farm, every animal has to earn their keep and if a hen isn't doing her job then she gets...