Sensex and Nifty ended lower due to auto stock declines, foreign fund outflows, and weak global cues.