The stock market fell for a third straight week, breaking or testing key levels, as oil prices soared amid the Iran war.