Formation of gels and complexes by pairwise interacting polymers