hi swechi
不 it usually use to negate present or future actions it can't negate past tense.
eg. 我不喝啤酒。/明天我不上课。 we can't say 昨天我不上课。
没,it ususally to negate past or present actions we can't use it to negate future tense.
eg. 我没喝酒。 昨天我没上课。we can't say 我明天没上课。
不 is also can negate usual or habitual actions. eg 我不喜欢唱歌。 他经常不来上课。
我听不懂。 听不懂 is the resultive complement it is a little different. 听不懂 is actually the nagative for the 听得懂