@Deepak ******
It depends what E-sim you want if you need an official Thai e-sim you need your passport, but if you buy an international e-sim (online) no passport needed, the only thing is maybe your bank account need the connection with the old sim, maybe cancel the bank account first, it seems you do not need it anymore for legal reasons