Hello ankita,
For a message saying "You cannot login because your account has been locked", you must contact Apple for help. This is not something you can fix yourself. Apple provides this contact link for this specific issue --> Apple Support .
_____
The above is based on the support article: If a message says 'Your account has been disabled in the App Store and iTunes' - Apple Support