When their are flat plains they are surrounded by mountains on at least two or more sides. The flat plains are formed by the plate tectonics that crash together to create mountains and hills witch over time the sediment builds up creating the flat pains.
I hope this could help!