Hi, the pulp tissue of your tooth seems to have got infected after exposure due to the trauma. The bad odour and discolouration is usually due to the pulp death and eventual infection. Please visit a dentist
as soon as possible and go for a Root Canal Treatment
. Otherwise it may lead to the infection spreading to your upper jaw, nasal area and even brain in the worse situation.