I would not guess if you are rooting and trying ROMs here. This forum is more about stock configurations and if you are playing with ROMs, be sure to ask in the forum you get these from. When I get a ROM I usually am in the XDA Forums.
I tried to manually update my phone to emui 5.0 and Android 7.0, it didn't work and I had to do a hard restore, so now I have it running but it is at 3.1 for emui and Android 5.1 beta, the model number was Eva-l09 now it's at A168-L09, how can I get my phone back to the version it was at, tried the updates on emui, in settings and hi care, any help would be greatly appreciated thank you

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic