Hi @Andyjenk3 thanks for your post here in the community.
@enlli has just beaten me to it - but yes that is correct, unfortunately as long as any handset (including O2) is registered to another network and locked, another provider's SIM Card cannot be used in that handset.
I hope this helps and please let me know if you need any further assistance.
Many thanks
Tom_W