I agree with the idea of asking, as suggested by @user6726. However, as a matter of general office politics I suggest a couple of refinements:
If you have an advisor, that is the first person to ask. If not, if there is someone with general administrative responsibility for graduate students, try them. You can always escalate to the department chair later if necessary.
Regardless of who you ask first, if you really are blackballed make them bring it up. You have a question along the lines of "I need more TA assignments for graduation, but have not got an assignment the last X cycles. What do I need to do to get an assignment?" That opens the discussion without accusing anyone of anything. If they tell you that you are never going to get another TA assignment then it is time to escalate to the department chair and your union, if any.
In a comment, I asked about talking to professors. Depending on the department's rules and customs, the professor who is responsible for a course will have some amount of influence over TA selection for the course. Even if you have been deliberately blackballed, asking a professor you do get along with about being a TA for one of that professor's courses may break the logjam.