President-elect Donald Trump is considering former GOP presidential candidate and retired neurosurgeon Ben Carson for the head of the Department of Housing and Urban Development, a spokesman for Mr. Carson said.

On Wednesday, Mr. Carson suggested on Facebook that he would join the Trump administration, reversing his stance last week that he didn’t want to work in government.

“After...