I need advice....

So lately my SO has been on his phone when he gets home and I'll ask him something or try and make conversation with him he'll completely ignore me for a good few minutes and responds it makes me feel like I don't matter I've talk to him about it and he says he won't do it anymore well we don't have sex that often either I always used to initiate it but we were getting intmate and he completely ignored me and was texting his friend while I was in the middle of touching him so from then on I just feel so insecure with making the first move, so because of that he rarely initates it a few days ago he gets home and is watching porn while I'm in the room next to him before bed I was so hurt usually I don't care about porn but since he makes no effort with me, he doesn't try to make it fun it just the same thing everytime do you think we can work it out or should we just move on.... I think it just really hurt because of how he pays no attention to me, I ask him if I'm doing anything wrong and he says no.