If there are full months remaining on your road tax, the DVLA will automatically refund the unused amount to the address listed on your V5C logbook once the sale is complete.
You can still sell your vehicle even if it has no road tax or is SORN (off the road).