You can sell your house even if it has a termite infestation or has had one in the past.  However, you will need to advise potential purchasers about the termite problem, which will almost certainly be a obstacle