Hens only have one ovary, and if they suffer from certain diseases and the ovary is damaged they will then display male tendencies and features, such as pointed feathers, enlarged wattles and mounting behaviour, and they will never lay again
On the other hand some dominant hens will mount others when there is no dominant male present, but will continue to lay.