Stocks fell as a wave of selling that analysts attributed to mounting doubts about a trade deal pulled lower shares of everything from banks to technology companies.

Worries about the path of U.S.-China trade negotiations and the global economy have kept stocks and bond yields under pressure.

Goldman Sachs analysts said the outlook for trade...