How can you take landlord to court?

If your state has housing courts, go there ad file a civil suit. If not, go to the local district or county court.