The Dow Jones Industrial Average and S&P 500 both fell from record highs on Wednesday as Ford posted earnings that exceeded analysts’ expectations.