yes, cherry's answer is right, 日本語が分かりません。nihongo ga wakarimasen.
or, you can say, 日本語が話せません。nihongo ga hanasemasen.
but you cannot say 日本語が話しません, if you mean you're not able to speak japanese, because 話しません is another meaning, it means you won't speak japanese, it makes people think that you can speak japanese but you won't.