Sufficient conditions for the existence of specified subgraphs in graphs