what should we do?

so my so deals with depression, anxiety and other issues and hes always stressed out with his job and living situations but when it comes to sex he hasnt been able to get hard or even ejaculate for about a month now. could it be everything thats going on in his mind or medical?