Retirement tax questions

While I am under 59 and I had the Roth less than 5 years, I did only withdraw my contributions or basis. Thans you!