Were you playing the same champ for both of those games? Because that can change things. What's an S score for one champ might not be for another because people play them at varying skill levels. Even if it was the same champ, depending on how far apart the games were could have changed it because people's average skill/score with them may have changed due to a patch/buff/nerf/etc.
At the end of the day there's no way for us to tell you what you have to get in order to get an S on a champion, because only Riot knows that and they're not telling us. I've ended games with a better kda ratio than people who get an S in that game but I only get a B at best. It's just a fun little thing that we can't predict unfortunately.
What I do know is that people have said playing a champ outside of their usual role tends to help, because people won't usually do it so a positive score with few deaths ought to get you an S. For example, playing Veigar support instead of mid, which is how I got my S rank with him for this season's chest.