先生 for man, 女士/小姐/ for woman. This is general rule.
But if the woman made great contribution in science,literature,art,politics,etc. She also can be said 先生 by authority before.Only a few women.It's just like reward. this is not general rule, sometime it's political.