Typhoid fever is an infectious disease that affects humanity worldwide particularly in the lower socio-economic communities where many individuals are exposed to a dirty environment and unclean food. A mathematical model is formulated to analyze the impact of control measures such as vaccination of susceptible humans, treatment of infected humans and sanitation in the different socio-economic communities. The model assumed that the population comprises of two socio-economic classes. The essential dynamical system analysis of our model was appropriately carried out. The impact of the control measures was analyzed, and the optimal control theory was applied on the control model to explore the impact of the different control measures. Numerical simulation of the models and the optimal controls were carried out and results obtained indicates that the overall combination of the control measures eradicates Typhoid fever in the population but the controls are more optimal in the higher socio-economic communities.