7404 does what any invertor does, it gives the opposite binary output to the input, only it has 6 separate, individual invertors. An invertor, for input logic 1 (5 volts in TTL) will return logic 0 & vice versa.
If u need to use one invertor, u have to buy the whole package of 6, ignore 5 & use one only.