The Nasdaq Composite gained on Monday after a tough week, bolstered by a surge in Tesla shares, as Wall Street focused on upcoming earnings reports that could move the markets.