Whenever new iPhone models are released, Apple discontinues the production of the previous versions, though it's possible to buy one or two generations of older devices in-store for awhile.
It will be difficult to trace back up to three generations and find it brand new in a sealed box. These phones will be used and refurbished models. They will have little to no warranty on the phone or purchase.