Relationship Trouble

Hi so I’m looking for some in sight I’m new to this relationship that I’m in. But today me and my bf got into a disagreement more of a fight/ disagreement/ miscommunication. Ok he was already up set over something that happens at school and I new he was mad but he wouldn’t tell me why and kept on ignoring me when I asked if he was okay. So then I started to get upset and annoyed with him bc he will like jokingly tell people oh yea where not dating oh I’m just joking where still dating and it’s annoying. So I was getting made and my friends where telling him that his not a good bf but he is but I just need some advice about how we can resolve problems like this and a few tips on how to better communication about our relationship. Any advice or commentary would be appreciated and very helpful.