Identification not letting motors run

Where is Brain defined ?
you may be running into the same issue as described in this topic.

that is, trying to use Brain.ThreeWirePort before it has been created.