Creativity is the capacity to manifest new, fresh ideas in some particular form. It's mostly subjective. For example, one person may regard a cozy for a TV set to be a creative use of knitting, while another thinks it's just a stupid waste of yarn. How many times have you heard people say regarding a Jackson Pollack painting, "Any idiot could just as well splash paint on a canvas."
Techniques are methods, routines, procedures, and other formalities of execution that are mostly objective. For example, "after tightening the screw, Joe grinds the head down smooth, and then covers it with oil to prohibit rust."
It is usually regarded that techniques are learned through training and practice (duplicated, passed on) where creativity is developed from in inward source of inspiration not easily defined. The words are not mutually exclusive. Some techniques are creative because they are fresh and new ways of doing something, and some creativity can be reduced to some specific steps or documented processes.
What hasn't been mentioned is "skill" which somewhat intersects the two terms. So, it is often said that skill is required for either technique or creativity to be realized in a useful or valuable way. For example, quickly and sharply focusing a lens* is a skill. Lack of this skill can possibly degrade what was otherwise a great technique or a creative idea for a picture.
Using the three terms in a triangle, or three-legged stool concept, can be the start of discovering good photographs from average ones. i.e. lack of skill, creativity or technique, might often lead to an unexceptional photograph.
*not at intended to imply that sharp focus is a REQUIREMENT for all circumstances.