Welcome to the forums. Not sure what your question is, there is a big difference between locked phone and turning on mobile data. You turn on data in Settings. If you do not have a working SIM or carrier data plan, the you will not be able to connect the phone. More detail would be helpful.
If you need additional help or have more questions or details to share, please join the site so you can reply in this thread. See
this link for instructions on how to join Android Central.