My undestanding no company can cancel H1B without sending your passport to USCIS, if this is true you are out of status if your visa expired or f you have lost this job.
Your visa was still valid and you left country after sometime you left the job & presented I94 before your visa expiry, then...