It depends on the nature of the remote server (here github.com)
That could simply means an issue on the remote server side (even though there is no recent alert).
Locally, it could be a firewall issue or an host of other causes (make sure your Windows is up-to-date with the latest patches
As the OP Rukshan Dangalla confirms in the comments, the anti-virus (Kaspersky internet security) was blocking 443.
You can see an example of such an interference in this issue, where it seems like the antivirus interferes with connection attempts, leading git to think connections were unsuccessful.
Adding git to a whitelist in the AV can be a good workaround.
(Do not disable the AV!)
Also check from the command-line if you have a credential helper (which might have cached the wrong credentials)
git config -l|grep credential
See "How to sign out in Git Bash console in Windows?": That is Git for Windows using the latest Microsoft Git Credential Manager for Windows.
From the discussion:
I tried the cloning in another machine which connected to same network and it worked. Issue is in my machine :(
As a last resort, You can also try and use an ssh url (if you have registered a public key on the server side)
git remote set-url origin [email protected]:<username>/<reponame>