Boyfriend of 9 months just doesn't seem to really care about me and wanna spend time with me anymore. I need advice.

So the thing is we've been together 9 months this is both of ours first relationship and lately he just doesn't seem all that interested in me anymore. It's not like he's seeing other women or anything like that. Its just that I always have to ask him to spend time with me and when we do hang out he's distant and moody and it pisses me off cuz I've been going through a rough patch in my life right now and I need to know he's got my back through it. But I can't hold his Interest while texting and when I just need to talk and be held he told the one time when I was breaking down that it's to depressing and went and hung out with his guy friends I'm like dammit i want you to actually put some effort into this relationship and be there when I need you. But ever since I got kicked out he is so distant and there's just this tension between us. And he's always moody and crabby with me and I'm like I seriously don't need this shit. But I love him so much and I just want everything to go back to normal and have him just show me he loves me. But I just don't know what to do anymore. So advice anyone??