There can be mainly two reasons why Cortana isn't available on your PC, first Windows Update second Sign In into Cortana app.
Check Windows 10 Update If any update has come, download and install it.
Open the Cortana app and sign in with Microsoft account.
Then click on Accept and Continue.
Cortana is all set to use.