On stochastic differential equations and applications