@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 07953 966 150 from any other phone.