You are projecting your own feelings of self-worth, or rather your lack of it, onto this situation and also your partner. Unless he coerced you into giving him head, you did so of your own free will. Outside of sex work, sexual acts should not be performed in order to receive something back, so maybe you need to remind yourself of this.
I'm sorry but this is absolute bollocks. If you are upset or offended because someone is treating you like shit, this is not because you are "projecting your own lack of self worth"; you are offended because their behaviour is fucking offensive! We all (sex workers or no) deserve to be treated with respect and appreciation by our partners, and our priorities and needs in a relationship should be equal to theirs.
I also disagree about sex not being a transaction outside of sex work, although that is highly subjective, many will disagree. I think every sexual exchange is a transaction, but money is not always part of the exchange.
You may have negotiable and non-negotiable desires from your partner, including love, affection, sex, romance, excitement, money, guidance, emotional support, co-parenting, shared housework, and so on. Your partner will also have their desires from you. Both partners may not have the same needs, but it is important that both feel theirs are usually/consistently met by the other.
In the short term, we all have distractions that could stop us giving our partner the attention they want - such as busy periods at work, and mental or physical health challenges. But if we continue to feel neglected long term, and our partner refuses to acknowledge, discuss, and address the situation, that creates a very unhealthy relationship that can sometimes become emotional abuse.