Nick Markakis, who returned to the O’s lineup on Monday after missing four games following a hit-by-pitch to his right shoulder, had four hits out of the leadoff spot, including a two-run homer that highlighted Baltimore’s 5-4 victory over the Yankees on Tuesday night.