On a BB controller, this is 100% of the time a bad wire/wire connection.
3a and 3b on this faq will identify which wire(s) and get you fixed up: