Hello.
If you have the VSphere 6 Essentials license key, make sure it is the license key and not an activation key.
The vmware license must be registered with a user and password on the VMware website. Do you have that User and Password?
Do you have any other user with which you can login to the VMware Vsphere, or by SSH connection (putty) ?
The fastest and safest method is to reinstall from an ISO image with the option to install and preserve the existing datastore (VMFS). But make sure you have the license.
When you install VMware vSphere it automatically activates a 60 days demo pro license.
If you can log into the ESXi host and know the version, update and build, you may be able to find an ISO from the manufacturer (if you have ILO it must be HPE) or try the latest version 6 iso image available.