What should you do if you wife doesn't like sex and could go the rest of her life without it?

It means that you have to make a decision. Either she go get counseling because that is not healthy, a healthy relationship has intimacy. When there are issue's with that there may be underlying issues that need to be resolved or she just feels that she doesnt have to work at the relationship like she used to, Either way, you both have to go to a sex therapist and if she wont go then you need to consider the rest of your life without sex. You may have to separate or get a divorce.