Ideally, you should read the original or primary source that author S (your secondary source) has cited in his paper before you use it. But in this case, the authors that S has cited are also not the primary source, since they have also taken the idea from other multiple sources. As you have rightly figured out, it will take a long time for you to track down and read all the original authors. However, you cannot cite only author S as the original idea was not his. Therefore, I think it would be good if you clarify that you have come across this idea through S and also mention the sources that S cites. For instance, you can use any one of the following options:
- “As author S points out in his article XXX (2001), according to authors A, B, and C, the cognitive process of motor imagery is similar to that of modelling."
- "According to authors A,B, and C (as cited in S, 2001), the cognitive process of motor imagery is similar to that of modelling."
However, you need not read all the works that S has cited, since you are not mentioning them as your primary source. If you cite as I've explained in the examples above, it will be clear that you have read only author S's work and your observations are based on his understanding of the other sources.