Your question does not provide enough details to answer it accurately. However, in general the terms for terminating your lease may be stated in your lease agreement. If you no longer have a copy, then request a copy from your landlord. As a person who is occupying a rental property without paying rent, you may be subject to a rent and possession action in civil court. This is a type of lawsuit in which the landlord files a complaint seeking a judgment for monetary damages in the amount owed in back rent and for possession of the property (i.e., eviction). The longer you live in the property without paying the rent, the greater the potential damages award against you.
Because the resolution of your problem will largely depend upon facts not mentioned in your question, you should seek the assistance of a local attorney if you cannot resolve the problem amicably with your landlord. Good luck.