Sensex gained 657 points and Nifty crossed 24,150 in early trade on Wednesday, driven by an IT stock rally.