The key equity indices closed with modest gains on Wednesday, buoyed by strong demand for IT, pharma, and healthcare stocks. Meanwhile, media and public sector banks faced selling pressure. The Nifty 50 index extended its winning streak to tenth consecutive sessions to surpass the 25,050 mark.