To recover access to your photos and videos that were on OneDrive after your subscription ended, you will need to reactivate your Microsoft 365 subscription. Once your subscription is active again, you should be able to access your OneDrive content, including any uploaded photos and videos.
If you had deleted any files, you might also want to check the OneDrive recycle bin, as deleted files are kept for a designated time before being permanently deleted. For work or school accounts, deleted files are purged after 93 days unless configured otherwise.
If you need further assistance, you can contact Microsoft technical support for help with your OneDrive issues.
References: