Old wiring in house has cable with 2 white wires and one black. Trying to install new ceiling fan
In the absence of any fuether detail, the wires you disconnected from whatever used to be installed are the wires that you should connect to your new fan.

That wire looks to be in poor condition, you should consult an electrician to verify it is safe.