Agustin Ramirez hit a solo shot in the fifth and Liam Hicks finished with two hits and two RBI to lead the Miami Marlins to a 5-3 win over the St. Louis Cardinals.