Given what you have written, the facts of the situation are unclear. Typically, you cannot receive unemployment insurance if you leave a job voluntarily or if your employer terminates you for cause (misbehavior, for instance). Other than that, unemployment insurance is essentially an entitlement. That being said, an employer can fight it if they want to.
From what you have written, it is unclear if you left or they terminated you. More details, including, which country you were in and a timeline of the events (simply which happened, first, second etc. would be helpful).Ask a similar question