Bid per click, Ad Rank, CPC and ACoS

How the bid per click affects the position in the search results (Ad Rank) and the ACoS of advertising campaigns.