I been trying to get pregnant for so long

I have fallen in a very bad depression I don't want to eat it's so bad that I don't even want to have sex anymore with my husband . Can someone tell me where I can get check to see if I have a problem for becoming a mom