In an exciting end to the Spanish season, there are only two points left between Atletico Madrid, Real Madrid and Barcelona, who face Atletico on Saturday.
Gabriel gave Valencia the lead shortly after half-time in Sunday’s game at Mestalla Stadium when he headed from a corner, but Barcelona scored three goals in 11 minutes to try to break the deficit.
Messi leveled after Jasper Cillessen and Antoine Griezmann parried a penalty from close range to put Barcelona ahead before Messi scored his second goal with an excellent free kick.
Carlos Soler’s long-range shot made it a tense final for Barcelona but the visiting side held out.
“We’re still alive, we have to pay a big compliment to the team for how they played,” said Barcelona’s assistant coach Alfred Schreuder.
“I think we played very well in the first half, we created a lot of good chances. But after the 1-0 (lead) from Valencia we reacted very well.”
After losing to Grenada on Thursday, the win brought Barcelona level on points with runner-up Real Madrid, with four games remaining in the season.
Inter Milan took their first Serie A title in eleven years, ending Juventus’ dominance in Italian football.
Atalanta’s failure at Sassuolo, combined with Inter’s 2-0 win over Crotone on Saturday, gave Antonio Conte’s side an undisputed lead at the top of the league.
Juventus, whose run was ended by nine consecutive league titles by Inter, needed two late goals from Cristiano Ronaldo to score a 2-1 win over Udinese on Sunday.
In France, as in Spain, the top division faces an exciting final with a point between Lille and Paris Saint-Germain at the top of the table.
AS Monaco and Lyon, the two teams in third and fourth place in Ligue 1, held a dramatic competition on Sunday.
The game consisted of a total of five red cards, four of which flared up at the final whistle and after a winner in the 89th minute of 17-year-old Rayan Cherki ended 3-2 in favor of Lyon.