Car dies after five minutes of driving

what year is it? if it new enough it might be the oxygen censor