Feeling depressed

I had my son 2 years ago and didn’t really lose the baby weight completely and now I’m 25 weeks pregnant and have gained weight. My husband and I haven’t had sex in two months and it’s making me feel fat and ugly. I get upset just thinking that my husband isn’t attracted to me anymore. Two months ago when we did try to have sex he had an erection but when it came time to have sex he went soft and he just said he “must be tired”. He hasn’t tried to initiate sex since then. I don’t want to try for fear or rejection. I’m just so sad, hurt and disgusted with myself. 💔