iOS has had storage encryption enabled by default since the iPhone 3GS (2009) so you’re not going to be able to recover anything from the hardware and applications have to work at it to retain data unintentionally. This is bad for data recovery and forensics but makes it much safer to sell a device.