Left and right flank pain, what can it be?

Many possibilities. Many things can cause flank pain, from skeletal and muscle pain to referred pain from internal structures. Kidney stones, if in both kidneys could cause this. I suggest that you need a physician to examine you and help figure this out.