I recently broke my phone and so my friend gave me her old one (sony xperia XA F3111) till I get mine fixed but when I put my sim in its saying it's locked by the operator and I need to enter a code, is it my sim that's locked or the phone and how do I fix it?
![Screenshot_20200117-174031.png Screenshot_20200117-174031.png](https://community.sony.co.uk/legacyfs/online/55594i64E65F7643598568/image-size/large?v=1.0&px=999)