Topological orders are exotic phases of matter existing in strongly correlated quantum systems, which are beyond the usual symmetry description and cannot be distinguished by local order parameters. Here we report an experimental quantum simulation of the Wen-plaquette spin model with different topological orders in a nuclear magnetic resonance system, and observe the adiabatic transition between two $Z_2$ topological orders through a spin-polarized phase by measuring the nonlocal closed-string (Wilson loop) operator. Moreover, we also measure the entanglement properties of the topological orders. This work confirms the adiabatic method for preparing topologically ordered states and provides an experimental tool for further studies of complex quantum systems.