Solving S-unit and Mordell equations via Shimura-Taniyama conjecture