Your Windows 10 product key serves as proof that you actually own Windows 10, and might need to be entered when you reinstall ...
You can activate a new or used iPhone for use with a cellular service provider in a few steps. Here's how to activate any iPhone, or troubleshoot it.