All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah and that Muhammad, sallallaahu ʻalayhi wa sallam, is His slave and Messenger.
Your first husband did wrong by contacting you and by disclosing his wish to get back with you while you are already married to another man. In fact, his conduct is considered spoiling the relationship between a wife and her husband, which is prohibited in Islam as underlined in fatwa 92056.
As for the divorce pronounced by the husband, it takes effect. Divorce issued in a state of extreme anger does not take effect only if the husband was absolutely unaware of what he did or said in such a state. Please refer to fatwa 121374 about the validity of divorce uttered in a state of extreme anger.
As for the triple divorce, please, refer to fatwa 94110 about the triple divorce pronounced in one session. If he doubts that divorce has taken effect in your case, then he is advised to refer the case to the concerned authority responsible for the settlement of Muslims' disputes in your place of residence.
As long as you are still married to your husband, you have a right over him to satisfy your desire for sexual intercourse within his ability. Ibn Taymiyyah wrote, “The husband is obliged to have intercourse with his wife on a reasonable basis, which is one of the most important rights that she has over him; it is even more important than feeding her. It was said that what is obligatory with regard to intercourse is once every four months, or according to her need and his ability, just as he should feed her according to her need and his ability. And the latter is the more correct opinion.” It is impermissible for him to deny you this right for no valid excuse.
If it is true that your husband is gay, then this is a serious matter. You did well be advising him to give up this grave sin. If he repents to Allaah and stops committing this sin, then all praise be to Allaah. However, if he persistently continues to sin, then it is recommended for you to seek termination of the marriage by divorce or khul' (divorce at the instance of the wife in return for a compensation payable by her). The Hanbali jurist Al-Buhooti said, “If the husband neglects any of the rights of Allaah, it is recommended for the wife – just as it is recommended for the husband in a similar situation – to request termination of the marriage, i.e. demand khul’, for his neglect of the rights given by Allaah.” Remaining married to this man in your case does not necessarily entail being deprived of success in the worldly life and the Hereafter; however, it is better to leave him unless he repents of his sins, as underlined above.
Allaah knows best.