BALTIMORE — A year ago at this time, Gary Sanchez was considered the Yankees’ most complete hitter, but then experienced a nightmarish season dominated by poor defense, dead wood and two trips to the disabled list.

Sunday at Camden Yards, where the Yankees destroyed the woeful Orioles, 15-3, in front of 33,102, the day’s designated hitter slugged three homers and drove in six runs to establish career highs in each category as the Yankees blasted seven homers in a game for the first time since July 31, 2007.

As impressive as that was, the depth the Yankees talked about during spring training played a big part in their third straight win that improved their ledger to 5-4 heading into a three-game series against the Astros in Houston that will be a much bigger test for the visitors than hitting against the slop served by the Orioles.

Elevated from the Triple-A Scranton/Wilkes-Barre on Monday when Giancarlo Stanton went on the injured list, Clint Frazier went 4-for-5 with two homers and four RBIs.

Early in spring training, the thought was that for Domingo German to make the team, the right-hander was going to be in the bullpen because there was no room in the rotation. Then staff ace Luis Severino went down with a shoulder issue and CC Sabathia was suspended at the start of the season and opened the year on the IL.

That created a spot in the rotation for German, and he has pitched very well in two starts. Mixing in a changeup with a mid-90s fastball and commanding his pitches, German didn’t allow a hit until Hanser Alberto singled with one out in the sixth. He allowed two tainted runs and two hits in six-plus innings to improve to 2-0 with a 1.64 ERA.

Catcher Austin Romine noticed the Orioles were in for trouble by the poor quality of their hacks against German.

“There weren’t very [many] comfortable at-bats,’’ Romine said. “[A lot] of weak contact.’’

Ideally, the Yankees wanted Frazier to get a steady diet of at-bats at Triple-A after playing in only 15 big-league games a year ago due to concussion issues that surfaced in spring training. Now those at-bats are coming in the majors and he has made the most of them.

“Sometimes it takes the whole 40-man roster,’’ said Frazier, who delivered a colossal home run that won Saturday night’s game and homered in the second and ninth innings Sunday. He also had an RBI single in the sixth. “We have a really good team even when guys are down.’’

The names on the IL are big ones. In addition to Severino. Sabathia and Stanton, leadoff hitter/center fielder Aaron Hicks, third baseman Miguel Andujar, elite setup man Dellin Betances, shortstop Didi Gregorius, shortstop Troy Tulowitzki are all on the shelf.

Yet, after losing four of the first six games to the Orioles and equally inept Tigers at home the Yankees stepped on the Birds’ necks to get three wins this weekend.

“After a difficult homestand and to come in here and kind of bust out a little bit with the bats, obviously, and get some good pitching performances, that’s nice to see,’’ Aaron Boone said.

After hitting two-run homers in the third, seventh and eighth innings Sanchez faced Hanser Alberto, who moved from second base to the mound in the ninth looking for a fourth.

“I tried to do what everybody was thinking about,’’ said a smiling Sanchez, who flied to left. “But I got under it.’’

Romine victimized Alberto for his first homer of the year in the ninth to raise the Yankees’ total to 14 in the three games.

Because the Yankees historically are built for hitting homers, there has been a foolish notion that they hit too many and don’t manufacture runs other ways.

It’s a mindset that doesn’t hold water with their manager.

“Never too much for us,’’ Boone said.

Justin Verlander, Gerrit Cole and Collin McHugh are waiting in Houston for the suddenly alive Yankee bats and will present a tougher challenge than the Orioles did.

Yet for three games against a very bad team, that depth the Yankees talked seemingly all spring about delivered and at least for a weekend stopped the questions about the Yankees chances of surviving with so many big names being on the shelf.