Hi,
The interest that accrued while in the ISA, remains tax free.
Any interest arising from the capital in the non ISA account is taxable.
If you move this capital to a new ISA, then it will count towards your £20000 limit for the current tax year.
Please see
Individual Savings Accounts (ISAs): Overview
Thank you