Existence of fixed points for self maps satisfying contractive and expansive type conditions in various spaces