Philip can't be king because the title of King is considered higher than that of Queen. Since Elizabeth is queen by blood her husband cannot be "higher" than her.

And, it does go to the male heirs first, but Elizabeth didn't have any brothers...

William's wife will be queen...