I'm not sure a temp sensor will cause that fault... especially with how intermittent it is.
A faulty temp sensor will cause bad running (not once in a blue moon bad starting), more so once the engine is up to operating temperature and the fuel bill will skyrocket.
Even for the sake of good maintenance, you could replace it. They aren't expensive and they are very easy to replace
Follow the top radiator hose to the engine. Just after the hose stops will be 2 sensors, 1 has a single wire (sender to the instrument cluster), the other has more than 1 wire (this is the temp sensor).
If you're unsure, post up a pic of your engine and someone will point it out for you
It sounds more like an electrical or lack of fuel fault... with the problem being so intermittent it makes it very hard to diagnose. It could be fuel filter (but prob not), dizzy, leads etc (I'm not well versed on exactly how a dizzy and leads work so not sure if the problem could lie in there)