The first term originated during World War II, most likely from the caption of a cartoon by Peter Arno in The New Yorker magazine. It pictured a man who held a set of blueprints and was watching an airplane explode. Source: dictionary.com
In general use it means that you have to go back and rethink a plan or course of action because it didn't work out properly. Source: Quora