Hi there sonam265,
Thanks for connecting with us in Apple Support Communities! It sounds like you're having difficulty locating some photos in iCloud after regaining access to your Apple ID. We're glad you're here, and we can provide some guidance.
To start, did you recently turn on iCloud Photos on your iOS device? "When you turn on iCloud Photos, the time it takes for your photos and videos to upload to iCloud depends on the size of your collection and your Internet speed. If you have a large collection of photos and videos, your upload might take more time than usual. You can see the status and pause the upload for one day. On your iPhone, iPad, or iPod touch, go to Settings > [your name] > iCloud > Photos. You can also open the Photos app, go to the Photos tab, and scroll to the bottom of your screen."
Keeping that in mind, make sure you're signed in with your Apple ID and iCloud Photos are turned on. Also, try connecting to a reliable Wi-Fi network with good signal strength. Then, check to be sure library uploads to iCloud haven't been paused by checking the status with the steps above. Learn more about setting up and using iCloud Photos from this support article:
Set up and use iCloud Photos
Next, review the information in this link for more help locating your photos:
Access and view iCloud Photos on your iPhone, iPad, or iPod touch
If the suggestions we've provided so far don't seem to help, have a look at the links below and work through the steps there:
Get help with iCloud Photos
If you're missing photos or videos in the Photos app
Cheers.