@pattybhoy You’ll have to call customer services to see if they can get the code. Depending on how long ago you closed the account it’s probably not possible.
To contact EE Customer Services dial 150 From your EE mobile or 0800 956 6000 from any other phone.