You should try resetting the phone to its factory state using Volume Down + Power or Volume Down + Power + Camera Button. The SIM is locked because it cannot establish the connection successfully.
Once you perform this operation you can insert the SIM and use it accordingly.