Josh Hamilton is heating up at the right time, and Los Angeles manager Mike Scioscia hopes he can keep going.

Hamilton homered and drove in three runs, Mike Trout also went deep and the Angels regained the best record on baseball, beating the Oakland Athletics 9-4 on Sunday night.

"This is huge for Josh," Scioscia said. "You can see what he can bring from what he did today. He can control the game by himself."

Erick Aybar had two hits and two RBIs and Kole Calhoun finished with three hits for the Angels, who ended a five-game losing streak to the A's in Oakland. Albert Pujols and Howie Kendrick each drove in a run as Los Angeles won for the ninth time in 12 games.

"We needed a `W' tonight," Trout said. "There are a lot of games left but any time you beat Oakland it's big."

Alberto Callaspo and Andy Parrino homered for Oakland, which had won three of four to move into a tie for the top spot in the American League West.

"It's not even about a series any more. We have to bear down every single day," A's manager Bob Melvin said. "When you take the first two, you always want the third one, but you can't complain when you take two of three."

Jered Weaver (14-7) struck out eight in 6-2/3 innings while improving to 7-1 with a 3.78 ERA in his past 13 starts. He allowed three runs and eight hits.

"It's nice to end the series on top of the AL West division," Weaver said. "This was obviously a huge game. We didn't want to get swept, and the offense was the story of the game."

Oakland's Scott Kazmir (14-6) matched his season highs in runs (seven) and hits (10) in three-plus innings.

"There were times I felt I could take control of the game, get two strikes on a guy and then throw one right down the middle," Kazmir said. "I felt like I wasn't aggressive enough."

Aybar contributed a two-run double when the Angels got to Kazmir for three runs in the second. Calhoun doubled home Aybar for a 3-0 lead.