Decoding how brain circuits control behavior