David Ortiz had three of Boston’s 12 hits off Wei-Yin Chen, and the Red Sox got an effective pitching performance from Felix Doubront and four relievers in a 4-3 victory over the Baltimore Orioles on Thursday night.