Between April and October the Cinque Terre Express is running back and forth between La Spezia and Levanto, stopping in every Cinque Terre village. There is a train every 30 minutes in both directions. You can get a free printed train schedule at the train station in every village, it's very useful to have it with you.