You can easily clear your iPhone and reset it from the settings & after that, it'll become a brand new from the inside so you'll be able to sell it.