If Find My iPhone is enabled on your iPhone, you can erase your phone data remotely using another iPhone.
Step 1. Open Find My app on another iPhone and log into your Apple account.
Step 2. Tap on your lost iPhone and tap on Erase This Device option.
Step 3. Follow the on-screen instructions and enter your Apple password for confirmation.
Step 4. Finally, tap on Erase again to complete the process.