The connection to the server “mail.domain.com” could not be completed

Getting error connection to server could not be completed when migrating user.Please check the error screenshot and help.It is working previously and it is not working now.

Error Message:

Error: CommunicationErrorTransientException: The call to ‘https://mail.domain.com/EWS/mrsproxy.svc’ failed. Error details: The HTTP request was forbidden with client authentication scheme ‘Negotiate’. –> The remote server returned an error: (403) Forbidden.. –> The HTTP request was forbidden with client authentication scheme ‘Negotiate’. –> The remote server returned an error: (403)

 Get-WebServicesVirutalDirectory | FL MRSproxyEnabled,WSsecurityAuthentication

MRSProxyEnabled,BacsicAuthentication,WSsecurityAuthentication value must be $true

 Set-WebServicesVirtualDirectory -Identity "EXCH\EWS (Default Web Site)" -MRSProxyEnabled $true
Get-WebServicesVirtualDirectory | Set-WebServicesVirtualDirectory -MRSProxyEnabled $true
Set-WebServicesVirtualDirectory -Identity "Server\EWS (default Web site)" –BasicAuthenticaition $true