You just need to contact EE customer services and request a PAC (Porting Authorisation Code) for your old mobile number.
This code remains valid for 30 days.
Once you have your new Virgin Mobile SIM you can then contact Virgin Mobile customer services (free on 789 from it), give them the PAC you obtained from EE and they'll transfer your "old" number to your new Virgin SIM.
If you want to say thanks > click 'Kudos'. Answered your question? > click 'Mark as Helpful Answer' also.