Is prayer nullified by having thoughts while performing it?
Prayer isn`t nullified by having thoughts while performing it, provided that the praying person offers all of its pillars and meets all of its conditions. However, the reward decreases significantly in the absence of reverence since a praying person is rewarded according to the attentiveness of his/her heart during prayer.
Is it permissible for a person who broke fasting in Ramadan because of being sick to pay a ransom?
If there is hope for him/her to be cured, then he would be required to make up for the missed fasting days when he/she recovers, and no ransom is due on him/her. If his/her disease is incurable, then he/she would be required to pay a ransom for each missed fasting day, which is (600) grams of wheat, or rice. And Allah Knows Best.
Is it permissible for a person to sever ties with his sister because her husband had quit prayer and done him harm?
A sister is a blood-relative and maintaining blood-relations is obligatory in Islam. As regards her husband, he should be invited to the way of Allah with wisdom and beautiful preaching.
What is the ruling on memorizing the Quran during menstruation, knowing that I do not read directly from the Quran but from a paper or from my phone?
It is not permissible to memorize the Quran during menstruation because memorization requires repetition, and a menstruating woman cannot touch the physical pages of the Quran. Similarly, if the Quranic verses appear on the screen of the phone, it is considered like touching the Quran. And Allah Knows Best.