Hello Amit Amin,
Thanks for your question.
For microsoft accounts If you lost access, you can only login via your recovery methods (Recovery codes/alternate email or what ever u set at the beginning).
If you did not set these, then you may alternatively have to attempt an account recovery using https://account.live.com/acsr
For work/school accounts you have to contact your IT Admin to help reset your methods
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola