Hello Rohan Islam,
To point you in the right direction, a couple of details would really help — could you share the exact error message Minecraft is showing when you try to sign in, which edition you're on (Java, Bedrock, or the unified Minecraft Launcher), and what device you're playing on?
As a quick sanity check in the meantime, try signing into https://account.microsoft.com with the same email and password. If that works fine, the Microsoft account itself is healthy and the issue is more likely on the Minecraft launcher side (a token or cache problem), which is usually fixed by signing out of the launcher and back in, or reinstalling it. If the account sign-in itself fails or asks for verification, that points back to account recovery instead.
Also worth knowing — a generic "error" message at sign-in usually isn't a sign of a fresh compromise, so try not to worry about that part until we see the actual wording.