subaru wrx impreza 1998

car wont start did but intermittant and would stall after a few secondsseemed to start on fuel from pump priming ,cleaned tank, flushed lines,now wont fire at all engine check light flashes constantly any ideas