125 out of 165 nominees have been confirmed to the supreme court ever since its establishment in 1869.
Robert Bork's nomination was not approved because he is an academic with controversial publications against contentious government issues, such as the Civil Rights act and Roe v. Wade. The Democrats were not for someone who goes against their beliefs even if they were exercising their freedom of speech.
Harriet Miers was not approved because the Senate believed that she was too close to the president, and she had never been a judge before. Hence, they thought that she had no experience. Additionally, senators from her party believed that she was a 'blank slate', and they couldn't nominate someone without a political stance.
As for the second part of the question regarding cabinet members, the individual in question is Andrew Puzder, who was nominated as the secretary of labor.
Pudzer was not confirmed because he withdrew his nomination before the senate hearing. Pudzer was forced to reject the nomination because of numerous scandals that surrounded him; for example, a tape of his ex wife claiming he was an abusive husband on Oprah resurfaced and put his integrity in question. Although the White house press secretary blamed the Democrats for the failed nomination, sources from within the Republican party confirmed that there were some reservations about his nomination.