Answer
(Fatwa: 1311/1311=M/1429)
If the spouses, due to any dispute, did not have sexual relation, this will not have any adverse effect on their Nikah, even if they spend years in the same condition, but they will be sinful by not discharging the rights of each other.
If husband swears not to have any relation with wife for forty days or more, and then he keeps himself away with her without having any sexual relation with her, then the wife will be divorced with one Talaq (baain). Thereafter, they can not rejoin except after renewing their Nikah.
Allah (Subhana Wa Ta’ala) knows Best
Darul Ifta,
Darul Uloom Deoband