Memory and data storage stocks led the tech sector higher Monday amid optimism about growing AI-driven demand.