My husband prefers masturbating over sex with me! Yes I have gained some weight. But sex is non existant. He tells me he has no drive yet he masturbat?

Depends. This can be frustrating and is not acceptable. If persists would try open and calm discussion about how to solve the problem together. Next step is counselor. There is a good book by mcknight called love tactics, that teach how to cultivate love and affection.