Every girl needs a certain amount of pampering when she is in a relationship. Something to show you that your boyfriend is grateful for you. It is only a small, self satisfying act. It motivates you to do better the next time.
Try appreciating him for the things he has done for you. Say sentences like "I'm really lucky to have you", " What would I do without you?" Or "Thank you for everything you do for me!". And mean what you say.
Quote instances where you are pretty sure you wouldn't have survived without his support. And instances where you prioritised him over the other person because you love him so much and he deserves to be treated specially.
Give him small gifts and make him feel special for no big reason.
I'm asking you to do all this so that he understands how great it feels when someone notices you or pays attention to your little deeds. This will trigger a reaction from him where he will want to reciprocate by making you feel special and important too. You are practically putting him through a guilt trip. Works like a charm every time.
But there are some harder nuts to crack on whom these might not work.
If your boyfriend is one of those tough ones, then you might try not doing those things you do for him that you think he doesn't appreciate you for. And don't give him the importance you give him in your life. Book for a movie with your girlfriends and don't tell him. Make him feel like he has no importance in your life. Give him a taste of his own medicine and when he decides to talk to you about whatever went wrong you tell him how you feel.
Be straightforward. And stand your point. Don't compromise, 'cause if you do, you're bound to feel this way in another few weeks.
Good luck! :)
Searches related to how to make your boyfriend realize your importance
how to make him realize he's losing you
make him realize he needs you
how to make someone realize your importance in their life
how to make a guy realise he loves you
how to make him realise what he lost
how to make someone realize they hurt you
how do you know if your boyfriend is getting bored of you
how to make someone realise his mistake