Ford is recalling more than 4.3 million pickup trucks and SUVs due to a software issue that could cause trailer brakes not to function.