Mike Schmidt scored from third base with two out in the 13th on the second wild pitch of the inning by rookie Steve Baker to give the Phillies a 3-2 victory over the St. Louis Cardinals last night in Philadelphia.

But Pittsburgh, which began the night tied with Philadelphia for first in the East Division, beat the Montreal Expos, 9-0. Montreal dropped to 1 1/2 games back and the Cardinals fell 3 1/2 back.

Schmidt led off the 13th against Baker (0-1) with his fourth consecutive walk and was sacrificed to second. One out later, Schmidt moved to third on Baker's first wild pitch.

Pinch hitter Gary Matthews was walked intentionally. With Bo Diaz batting, Baker threw a 1-0 curve into the dirt, allowing Schmidt to score.

Schmidt couldn't understand he was walked with two out and nobody on base. "You got to come at me," he said. "I don't see our pitchers walking anybody in that situation."

Baker was nearly in tears after the game. "You come to a new team and try to help them out, and lose the game," said Baker, acquired from Oakland two weeks ago. "They won it on two terrible wild pitches."

The Phillies had tied the score, 2-2, with two runs in the eighth. Pinch hitter Pete Rose singled and Joe Morgan walked to knock out starter John Stuper. Len Matuszek bunted, but reliever Bruce Sutter threw the ball into left field to score pinch runner Jeff Stone and send Morgan to third. Morgan scored on Joe Lefebvre's sacrifice fly.

Philadelphia starter Charles Hudson allowed one hit in eight innings, but the Cardinals used that hit--Darrell Porter's ground-rule double--to score two unearned runs in the fifth.