To move World of Warcraft back to the official servers after using a private or third-party server, the key step is to change your realmlist back to its original setting.
You'll typically find this in the game's realmlist.wtf file, usually located in the Data folder. Replace the private server's address with the standard official one, save the file, and you should be pointed back to Blizzard's servers.