I think this could be The Dead Case. You are a ghost investigating your own murder. I found a fiery ghost inside a church. The art style is line-drawing-esque. According to the walkthrough at Jay Is Games, a) you definitely have to collect candles for a ritual, and b) in the ending, you are saving a woman from being murdered (although I'm not sure if she was a teacher).