When good offenses go cold at the wrong time

This is a thinking that has always escaped me because what, exactly, do you want a team to do differently when it is getting chances and shots but not scoring goals? Just score? No kidding.