Some coincidence and periodic points results in a metric space endowed with a graph and applications