using iCloud, if you forget your iCloud you can take the iPhone with the receipt to any nearest apple support they will help you