Stocks rebounded on Thursday from a three-day sell-off amid a bounce back in technology shares.