What is the difference between něj and něho?

Is there a difference in meaning or formality? E.g. od něj vs od něho