was W.E.D dubois a former slave?

No, W.E.B. Du Bois was not a former slave. He was born on February 23, 1868, in Great Barrington, Massachusetts, United States, a few years after the abolition of slavery in the U.S. Du Bois became a prominent African-American sociologist, historian, civil rights activist, and writer.

did he write the souls of black folk?

Yes, W.E.B. Du Bois wrote "The Souls of Black Folk." It is a seminal work of African-American literature published in 1903. The book explores issues of race, identity, and the struggles faced by African Americans in the United States. It is considered a classic piece of literature and an important contribution to the civil rights movement.