Berlin is big, so on a wet day choose one area and one anchor, then stay close to it.

The German Museum of Technology in Kreuzberg has whole halls of steam engines and an aircraft on the roof, and the Spectrum science centre next door is all experiments. Labyrinth Kindermuseum in Wedding and MACHmit! in Prenzlauer Berg are built for children from about three to eleven, with mazes, workshops and room to climb.
The Aquarium at the Zoo is a good rainy hour with small children, and FEZ in Wuhlheide is a large children's centre with indoor space for when the weather turns. The glass dome of the Reichstag is free but needs booking in advance.
Everything here is indoors or has a substantial indoor part.