As per Labour Law, company is not obliged to give you NOC if they terminate you. They are only obliged to give you the gratuity for 3 years. You can just speak with your manager and ask him why he is not giving NOC if it is not your fault.