It was not advisable for you to continue to be employed even as a contractual consultant when the company failed to make payments every month.
Non payment of monthly salary is breach of contract hence you can terminate the contract immediately and seek for payment of your dues by issuing a legal notice to the employer.
Even now you engage an advocate, issue legal notice and then file a suit for recovery of your dues.