Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.
Is it permissible for a woman to wear underwear while performing Umrah?
Yes, it is permissible for a woman to wear underwear while performing Umrah. This is because she should keep her regular clothes that cover all her body while being in a state of Ihram (ritual consecration) for Hajj, or Umrah. However, she should uncover her face and hands, but it is permissible for her to let her head-covering garment drape from her head down over her face when non-Mahram (i.e., marriageable) men pass by her. And Allah Knows Best.
What is the ruling on someone who vowed to fast for two consecutive months, but failed to do so?
He is obliged to fulfill his vow by fasting for two consecutive months, but if he fails to do so then, it remains a debt on him until he either fulfills his vow, or dies. In case of his death, his guardian is supposed to fast on his behalf, or donate food from his estate in return for fasting, but if the guardian fails to do so then, it is all in the Hands of Allah.
What is the ruling in Islam on castrating animals to use them for work?
All perfect praise be to Allah the Lord of the Worlds. May His peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
This isn`t permissible because jurists said: "It is permissible to castrate the animal if it is eaten and this procedure is done at early age." And Allah The Almighty Knows Best.