Pitching, extra base hits give Rams 3-2 win over Cardinals