Hens can act as a 'protector' and flock leader and still lay eggs.Typically, when female acts as the 'protector' due to no male birds present, do they also stop egg production?
If a hen has damage to the ovary, then more male behaviors and appearances can happen due to an imbalance of male vs female hormones.
I had a 2-3yo EE hen start crowing and help the cock 'herd' the flock one winter.
It was after her molt and before she started laying again and lasted a couple-few months.
Once she started laying again the crowing stopped.