I believe EE phones work ok with Virgin Sims.
If you're not buying a new phone, take care, there are hundreds of 'stolen' Iphones on the market and many are locked as the owners have enabled 'find my phone'. I think if you can get the IMEI details you can check online that its ok.