I taught him history yesterday =
1) I taught him yesterday and am finished teaching him. He is not finished learning, though (Somewhat likely)
2) He has learned everything about history and I don't have to teach him any more. (much less likely)
I was teaching him history yesterday =
I was in the process of teaching him yesterday. He still has something to learn about history and I will probably be teaching him again. (Most likely event)