Doesn't, does not, or does is used with the third person singular--words like he, she, and it.
Don't, do not, or do is used for other subjects.
Incorrect: It don't matter anymore.
Correct: It doesn't matter anymore.
Incorrect: Grandfather don't see too well.
Correct: Grandfather doesn't see too well.
Correct: His glasses don't help him much.