Can't get in the mood

Basically I had tonsillitis for ages and it caused really bad thrush which made sex painful. Long story short: sex isn't as painful now but I can't get in the mood or turned on which isn't helping my sex life with my boyfriend. He's trying to help, he really is, but I'm just wondering if anyone knows how I can relax and get in the mood as I'm feeling quite depressed before sex and after. This basically makes sex rubbish and I don't really want it because I feel like shit.