Yes, you will need to apply for a new visa on your new passport before returning to Thailand if your previous visa was in the lost passport.