Glen Johnson opened up the scoring for Liverpool with a beautiful goal from the right side of the box. He received a pass from Steven Gerrard and put it in a spot where the keeper could not reach it.
However, Gerrard was later the reason for a West Ham goal when he headed the ball into his own net on a cross. Prior to that, though, West Ham earned a penalty shot after Joe Allen was called for a hand ball in the box.
Mark Noble seized the opportunity with a perfect shot in the bottom left corner.
Things started to look bleak for Liverpool, but then the club came through with back-to-back goals to gain a 3-2 advantage. Joe Cole got the equalizer in the 76th minute, while West Ham defender James Collins was credited for an own goal that was caused by Jonjo Shelvey.
Both teams entered the match near the middle of the EPL table and were looking to add some points.
Liverpool has had a hard time earning wins in the past few weeks. In the nine league matches before Sunday, the club has only gotten the full three points on three occasions. However, the Europa League has given the squad a chance to be successful as it has already advanced to the next stage.
On the other hand, West Ham United came into the match with a little momentum after a 3-1 victory over Chelsea a week ago.
At the end, it was Liverpool that earned the win and are now tied with West Ham with 22 points on the year.
Glen Johnson opened up the scoring with a beautiful goal that no one was defending.
Mark Noble tied the game up with this solid penalty kick.
This is more of a lowlight, as Steven Gerrard put one in his own net.
Joe Cole scores off a great pass from Raheem Sterling.
The game-winning goal went off of James Collins.
Glen Johnson, Liverpool: A
Although he is not known as a scorer, he came through in a big way on Sunday with his first goal of the league season.
The defender played well on both sides of the ball, usually preventing any open looks from the West Ham forwards.
On a day when Liverpool struggled for a long time, Johnson was one of the best players on the pitch.
Steven Gerrard, Liverpool: C+
Steven Gerrard had a bit of an up-and-down match.
The own goal turned out to be not as costly as originally anticipated, but that only gives him a little bit of a reprieve. He also was given a yellow card in the 33rd minute.
However, he also had some solid moments. The midfielder was a big reason that Liverpool was able to dominate possession throughout the match.
He was also responsible for an assist on the first goal.
This is not a match that will be in Gerrard's highlight reel, but he did enough to help his team.
Mohamed Diame, West Ham: B
He did not score, but Liverpool had a hard time keeping up with Mohamed Diame throughout the game. The Senegal native put pressure on the defense and ended up drawing three fouls. This helped set up the offense throughout the match.
Diame came off in the 73rd minute, and Liverpool was able to score only a few minutes later. This turned out to be a big loss for West Ham.
James Collins: West Ham: D
Toward the end of the game, West Ham had no answer for the offensive burst by Liverpool.
Joey O'Brien and James Collins were left chasing players they could not catch, and it led to the team giving up the lead in the final 20 minutes.
Collins was also the one who ended up tipping in the go-ahead goal by Liverpool.
He is a veteran defender, but this was simply unacceptable for the closing moments of the match.