You can still sell your iPhone XR if it is cracked or cosmetically damaged. Make sure to state its condition as ‘Faulty’. Check out this page for more information on how to sell broken phones.