Asalaam o alaikum, sister, my first thought is, how much do you love him, what are you prepared to do for him? Evaluate this first. Then think about what it would be like if you were divorced. Have you any children?
A suggestion, is to spice things up. Get back to when you first met. A man loves to come home to a beautiful women, ready and attentive for him. Food is always a good way of seducing a man too.
But if all this fails and he is getting further away from you, then if he will not talk to you, or change his ways on this matter, think hard again, and consult Allah. Make Istikarah, many duas and ask for Allahs help, in your self and for your husband. Invariably, it could be a phase he is going through. It maybe that he will return to you again with a true heart and become loving again. Patience here is valid and perseverance is needed too. So have these virtues and be that beautiful women and win him back, for the sake of Allah.
If the signs come that divorce is inevitable, then do it.