Past simple/past continuous I ... (not talk) when the teacher arrived
I wasn't talking when the teacher arrived. То есть это процесс, длившийся в определённый момент.