If the engine intermittently does not start and is cranking OK, it may be the main relay is defective. The main relay can corrode and fail, requiring replacement.