"I don't understand" has a broad meaning; it can refer to people speaking foreign languages, or to a complex situation (such as a scientific concept, news item...)
"It doesn't make sense" means that you don't understand the logic behind "it". It can even mean that you understand, but you disagree with it. So, it is a much more specific comment than "I don't understand"