I (20F) am tired of being the good person always

Always in my life I have tried my best to be a good and kind person. Going all out for people when they are low and making sure they are okay and there are very little times when I have received that back. For eg. me and my boyfriend (21M) broke up recently because of his family but we are still in contact because it was not because of something that happened between us and there is still scope of fixing. Whenever he cries about something and he is low about the whole situation I am there to support him be there for him and make sure that he is okay and not crying anymore but time and again I feel that being not reciprocated. And I try to treat people the way they treat me but I just can’t live knowing someone is not okay and crying it hurts me when someone I love cries so I have to be there for them. I wasn’t fine today and rather than being there for me he ghosted me for 2 hours. While last night when he cried I talked to him for an hour and made sure he was okay before he slept. I hate this feeling. What should I do?