If you left while the H1-B was pending but before it got approved, you abandoned the COS, so you will either need to get an H1-B visa stamp and enter on that to change to H1-B, or if you are in the US on F1 status you can ask your employer to file another change of status (should be easy since you already have the H1-B).