Sorry for the typo errors.
@dtox and @cooldip10 : I had already mentioned that uninstalling and reinstalling firefox didnot work.
@Vishal Gupta : I had mentioned that I couldn't open firefox
@QM and @ pritzdj : Deleting the whole mozilla folder helped me in solving the problem
Thanks for all the help !! I am back on firefox !!