The only way to know what killed your hen is a necropsy. You could cut the hen open yourself and examine the body cavity for anything unusual. Often the cause of death will be staring you right in the face.
A stuck egg. An enlarged liver, tumors, etc. If she had gapeworm, you would see them...