If you cancelled your contract with your old provider and forgot to ask for a PAC code, you may still be able get one and bring your number across.
So it’s worth giving them a ring. Much will depend on how long ago you cancelled the contract. Generally when a PAC Code is issued, it is ‘quarantined for six months’.