Hi Ameeta,
Am so sorry to hear the way your boss has been treating you but on the other hand its evident that you have been working with him for 1.5years, a good span of time to know about your boss. If he concludes that you were not doing your job properly, then even though you believe that you have done it perfectly, let go your ego and apologize to him to find out on what grounds he came to this conclusion and what were your drawbacks.
The chances are either he had wrong impression on you, if so try to clear it out then and there by highlighting your accomplishments during your tenure in the company OR may be he is not aware that you are sincere in your work, so tell him henceforth you will report to him on daily basis, in such a way he is updated on the tasks that you done for that day, also he gets to know your commitment towards the work. Find out if any politics is been played around you. Gaining confidence of your boss is needed on first priority, later everything will set right automatically.
If your boss said that he will not assign you any work in future, then definitely a reason lies behind it, find out, if thats really a mistake then try to rectify that and approach your boss to convince him that this will not repeat again, in the other phase if he is wrong and prove that he is wrong and he has created a wrong image of you. Things will work out only when we speak out but always be clear with what you say and do. Even if things doesn't work out, then look out for a new opportunity.
Good Luck.
- Babu