The closest railway station to Valparai, is at Pollachi. The next being Coimbatore junction. Pollachi has a number of local trains that run on the Coimbatore-Pollachi route. One can board them and reach Pollachi, and from there, travel by road to Valparai.
Railway Stations in Valparai