/ Updated 
By Darek Michael Wajda
Supporters of Hector Yunes, a candidate for governor of Veracruz from Institutional Revolutionary Party (PRI), react after regional elections at party headquarters in Xalapa, in Veracruz state, Mexico, June 5, 2016.STRINGER / Reuters

Mexico’s ruling party saw significant defeats in Sunday's elections, including historic losses in states it had always won before, according to preliminary results.

The Institutional Revolutionary Party (PRI) won five of the 12 governorships in state elections, but the National Action Party won 7 states, including Veracruz, the third largest with 8 million people, as well as Quintana Roo, Tamaulipas, Puebla, Chihuahua and Aguascalientes.

PAN national leader Ricardo Anaya Cortes said in an interview with Mexican newspaper El Universal that "if we do things well, if we deliver, if we give results in those states, then the PAN will regain the presidency."

Analysts say the country's ongoing issues with violence and the weakening economy have had a negative impact on Enrique Peña Nieto’s presidency.

Follow NBC News Latino on Facebook, Twitter and Instagram.