Blue Fox Bar, Inc. (Blue Fox) appeals from the trial court’s judgment for the City of Yankton and from the court’s denial of Blue Fox’s motion for a new trial. The City of Yankton has filed a notice of review from the trial court’s order denying the city’s motion for summary judgment. We affirm.
FACTS
In 1967, City of Yankton, pursuant to its plans and specifications, had a lift station designed and constructed on the east side of Yankton. Originally, this lift station served a small area of Yankton, but by 1984, it served the whole area east and northeast of Yankton and an area outside the Yankton city limits.
In 1978 and 1980 this lift station underwent certain modifications. In 1978 an alarm circuit was added to the lift station. This alarm circuit was tied into the lab at the sewage treatment plant and enabled the lift station to be monitored in case a problem developed. In 1980 the sewer line *917from the Human Services Center was rerouted through this lift station and a third pump was added to handle the increased volume of sewage.
In 1979 Blue Fox purchased the Super 8 Motel. Although outside the city limits, the Super 8 Motel was provided water and sewer services by the City of Yankton. Water rates for those outside the city limits were double the rates of those paid by residents of Yankton. Sewer rates were the same. The hookup by the Super 8 to the city sewer system was authorized by the Yankton city commission. The Super 8 Motel was serviced by the lift station located on the east side of Yankton.
On September 5,1984, sewage backed up in the basement of the Super 8 Motel. Originally believing that the problem was caused by blockage within the motel, one of Blue Fox’s employees attempted to remedy the situation. When his attempts to rectify the situation failed, a plumber was called. The plumber established that the source of the problem was outside the motel and notified the city. It was discovered that the lift station which serviced the Super 8 was not operating. The cause of the problem was electrical in nature; a breaker to the control panel was either in the “off” or “tripped” position. Without power to the control panel, the alarm system, which was added in 1978, failed to work. Once the circuit breaker was turned to the “on” position, the system functioned properly.
Blue Fox started this action to recover damages sustained by the Super 8 Motel as a result of the sewage backup. In its complaint, Blue Fox alleged causes of action in negligence, strict liability, and breach of contract. The City of Yankton moved for summary judgment alleging that it was immune from such suit because of the doctrine of sovereign immunity. The trial court denied the motion finding that the complaint stated a cause of action upon which relief could be granted. The case was tried before a jury in January 1987. At the close of the City of Yankton’s evidence, the trial court dismissed Blue Fox’s cause of action in contract and strict liability. The jury found for the City of Yankton on the claim of negligence. The court denied Blue Fox’s motion for a new trial.
On appeal, Blue Fox asserts that the trial court erred by dismissing its causes of action in contract and strict liability, by refusing to instruct the jury on the doctrine of res ipsa loquitur, and by refusing its motion for a new trial. In its notice of review the City of Yankton contends that the trial court’s refusal to grant summary judgment was improper. We address this issue first due to its possible effect on Blue Fox’s appeal.
DECISION
DOES THE DOCTRINE OF SOVEREIGN IMMUNITY PRECLUDE BLUE FOX FROM MAINTAINING A CAUSE OF ACTION AGAINST THE CITY OF YANKTON?
UNDER THE FACTS AND CIRCUMSTANCES OF THIS CASE, WE HOLD THAT IT DOES NOT.
Sovereign immunity is the principle that the state cannot be sued unless it has given its consent or has otherwise waived its immunity. City of Rapid City v. Boland, 271 N.W.2d 60, 64 (S.D.1978); Cuka v. State, 80 S.D. 232, 122 N.W.2d 83, 85 (1963). When acting within its governmental powers, a municipal corporation is acting as an agent for the state and partakes in its sovereignty in respect to its immunity. City of Rapid City v. Boland, Id.; Conway v. Humbert, 82 S.D. 317, 145 N.W.2d 524, 526 (1966). However, a municipality is liable in the same manner as an individual or corporation for torts in its corporate or proprietary capacity. Sioux Falls Construction Co. v. City of Sioux Falls, 297 N.W.2d 454, 457 (S.D.1980); Bucholz v. City of Sioux Falls, 77 S.D. 322, 91 N.W.2d 606, 608 (1958).
Governmental immunity is not a defense to a claim against the state for contractual liability arising out of either *918governmental or proprietary operations. Zynda v. Michigan Aeronautics Commission, 372 Mich. 285, 125 N.W.2d 858, 860 (1964); Department of Parks and Recreation v. West-A-Rama, Inc., 35 Cal.App.3d 786, 111 CahRptr. 197, 202 (1973). Such contractual obligations would be deemed a waiver of any immunity. Therefore, the trial court properly determined at the time of the motion for summary judgment, that Blue Fox’s cause of action in contract sufficiently stated a claim upon which relief could be granted.
The trial court determined that the City of Yankton was operating in a corporate or proprietary function by constructing and maintaining a sewer system, and, therefore, a cause of action existed in tort against the City of Yankton. This court, in citing to the case of State v. Board of Commissioners, 53 S.D. 609, 222 N.W. 583 (1928), has previously stated:
Municipal Corporations enjoy their immunity from liability for torts only in so far as they partake of the state’s immunity, and only in the exercise of those governmental powers and duties imposed upon them as representing the state. In the exercise of those administrative powers conferred upon, or permitted to them solely for their own benefit in their corporate capacity, whether performed for gain or not and whether of the nature of a business enterprise or not, they are neither sovereign nor immune. They are only sovereign and only immune in so far as they represent the state. They have no sovereignty of their own, they are in no sense sovereign per se.
Oien v. City of Sioux Falls, 393 N.W.2d 286, 291 (S.D.1986). It is well established that it is the nature of the duty performed which determines liability. Conway v. Humbert, supra at 527; Bucholz v. City of Sioux Falls, supra at 610. In constructing and maintaining a sewer system, the City of Yankton was acting pursuant to SDCL 9-48-2.* This statute does not create, or impose, any duties upon the City of Yankton. In Jerauld County v. Saint Paul-Mercury Indemnity Co., 76 S.D. 1, 71 N.W.2d 571 (1955), this court considered whether the operation of a county hospital was a proprietary or governmental function. In establishing that such activity was governmental, the court stated:
SDC Supp. 50.0101 makes it the duty of the county to relieve and support all poor and indigent persons having a lawful poor relief settlement therein. In this general duty is included, among other things, the specific duty to provide hospitalization, medical care and treatment. In the acceptance of the duty the county has no choice, (citations omitted)
71 N.W.2d at 574.
In the present case, the City of Yankton had no duty to construct or maintain a sewer system either within the municipality or outside its corporate limits. However, by undertaking the construction and maintenance of a sewer system, the city acted in a proprietary capacity and, therefore, may be held liable in tort for wrongs committed in its exercise of this function.
II.
DID THE TRIAL COURT ERR WHEN IT DISMISSED PLAINTIFF’S CAUSE OF ACTION IN CONTRACT?
WE HOLD THAT IT DID NOT.
Blue Fox claims that the Yankton city commission’s ratification of an agreement *919to provide sewer and water service to the Super 8 Motel at a stated rate created an implied contract between the parties. At the trial, the only evidence offered to show the existence of such a contract was a brief bit of testimony by Eugene Hoag, the Director of Public Works in Yankton. Hoag’s testimony merely revealed that the City agreed to provide sewer and water services to the Super 8, and that the Super 8 would pay a sewer rate the same as the residents of Yankton. For the water service, however, the Super 8 would pay double the rate which residents paid. No further terms of the alleged contract were ever provided. The trial court held that the city commission’s ratification of the agreement to provide water and sewer service at a specified rate was merely because of the cost of providing that service and was at the request of the Super 8. It did not constitute a contract.
It is well established that a municipal corporation has only such powers as those granted to it by the constitution or statutes of this state, or such as incidental thereto. Schryver v. Schirmer, 84 S.D, 352, 171 N.W.2d 634, 635 (1969); City of Watertown v. Meseberg, 82 S.D. 250, 144 N.W.2d 42, 44 (1966). Blue Fox has indicated in its brief that, pursuant to SDCL 9-48-32, the City of Yankton had the power to enter into a contract regarding sewer service. SDCL 9-48-32 provides:
A municipality wherein sewage treatment or septic plant is maintained shall have power to contract for the privilege of connecting to said plant for the purpose of treating or disposing of private sewage or industrial waste originating within the municipality or within one mile of the corporate limits, provided said plant has capacity over the requirements of the municipality for handling such sewage or industrial waste, (emphasis added)
SDCL 9-48-32 clearly refers to the “power to contract.” One of the primary rules of statutory construction is that words and phrases should be given their plain meaning and effect. Matter of Aiken, 296 N.W.2d 538, 540 (S.D.1980); Board of Regents v. Carter, 89 S.D. 40, 228 N.W.2d 621, 624-625 (1975). However, when possible, statutes are read to give effect to all provisions. Hartpence v. Youth Forestry Camp, 325 N.W.2d 292, 295 (S.D.1982); State v. Heisinger, 252 N.W.2d 899, 903 (S.D.1977). The “power to contract” language in SDCL 9-48-32 is clearly qualified by the phrase which immediately follows, “for the privilege of connecting.” This language implies that the only contractual right that could be granted to the Super 8 is the “benefit” of connecting to the sewer line. It is not every agreement that results in a binding, legally enforceable contract. Mitzel v. Hauck, 78 S.D. 543, 105 N.W.2d 378, 380 (1960). An agreement must contemplate assumption of legal rights and duties if it is to result in a binding, legally enforceable contract. Id.
This court has stated that no one has any vested rights in the use of sewers nor can the city grant such a vested right. Ericksen v. City of Sioux Falls, 70 S.D. 40, 14 N.W.2d 89, 95 (1944). In Ericksen, supra, this court considered whether the City of Sioux Falls could enter into a contract with John Morrell & Company to dispose of John Morrell’s industrial sewage from its plant in the city of Sioux Falls. In determining that the city did not have the right to enter into a contract regarding the sewers, the court stated:
The supervision and regulation of the sewers is a police function of the city. Therefore, in granting permission for the use of the sewers in the first instance and for the continuing use thereof, the city must at all times retain control, and any attempt by way of contract to deprive the city of that control is void. The police power of the city cannot be bargained away by contract, but must at all times be available for use to meet such public needs as may arise. McQuillan, Municipal Corporations, 2d Ed Rev., §§ 393, 1564.
14 N.W.2d at 95.
It should be noted that in Ericksen, supra, SDCL 9-48-32 (then SDC 45.1811) was *920inapplicable because it only pertained to sewage originating within one mile of the municipality and not sewage originating within the city limits. Although SDCL 9-48-32 was later amended to include sewage originating within the city, this would not change the rationale expressed in Erick-sen, supra. SDCL 9-48-32 merely gives the city the right to allow a party to use the sewer system at a stated rate. Here, the city commission’s ratification of an agreement to allow the Super 8 to hook up to the sewer line at a specified rate created no duties, rights or obligations on either party. Therefore, the trial court was correct in its determination that no contract was formed under the facts as presented.
III.
DID THE TRIAL COURT ERR WHEN IT DISMISSED PLAINTIFF’S CAUSE OF ACTION FOR STRICT LIABILITY IN TORT?
WE HOLD THAT IT DID NOT.
In the case of Shann v. City of Rapid City, 72 S.D. 418, 35 N.W.2d 399 (1948), this court considered whether a city could be held absolutely liable for the backup of sewage from a sanitary sewer onto a plaintiff’s property. In holding that such liability could not be imposed, the court stated:
Were the city to be held to an absolute liability for any and all damage to a person suffered by reason of water and sewage set back upon his property through a connection with a sanitary sewer and this regardless of negligence or fault on the part of the city, there would be placed upon the city such an unreasonable burden that its authorities would hesitate to give the city the benefits of a sanitary system.
35 N.W.2d at 401. The court in Shann, supra, also stated that if liability were to attach under the facts of the case, it must depend upon some established negligence of the city. Id. 35 N.W.2d at 400-401.
Blue Fox contends that Shann, supra, should be distinguished because the Shann case dealt with sewer services within a municipality, and, in this case sewer services were provided outside of city limits. This contention is without merit. The court in Shann, supra, made no distinction between sewer services provided within city limits and those provided outside city limits. Its concern was with the burden that would be placed upon the city if the city were held to absolute liability. This burden would be the same regardless of where the sewer system was extended. Therefore, the trial court’s dismissal of Blue Fox’s cause of action in strict liability was proper.
IV.
WAS THE TRIAL COURT'S REFUSAL OF BLUE FOX’S INSTRUCTIONS ON RES IPSA LOQUITUR PROPER?
WE HOLD THAT IT WAS.
In refusing to give Blue Fox’s proposed instruction on the doctrine of res ipsa loquitur, the trial court relied on the case of Shipley v. City of Spearfish, 89 S.D. 559, 235 N.W.2d 911 (1975), which held that it was not proper for the trial court to give an instruction on res ipsa loquitur where damages were sustained due to an overflowing sanitary sewer. In Shipley, supra, the court reiterated the established rule that one of the requirements of res ipsa loquitur is that “the instrumentality which caused the injury must have been under the full management and control of the defendant or his servants.” Id. 235 N.W.2d at 913. As it pertains to a sewer system, the court found that this requirement could not be met and stated:
In giving the Instruction # 13 to the jury on res ipsa the trial court was allowing the jury to decide whether or not “the sewer by which damage to the plaintiff was proximately caused, was in the possession or under the exclusive control of the Defendant at all times material to *921this action.” In view of the case law on the subject and the testimony in the record an affirmative finding on the question would have been entirely unsupported. The trial record is clear that Defendant’s sewer system is not under its exclusive control. It is easily accessible. Any homeowner whose own plumbing feeds into it thereby has access to it. A passerby can gain access through unsecured manholes in the public streets and on Halloween and at other times, the record shows, manhole covers have been removed and the manholes left open.
235 N.W.2d at 913.
In the case at bar, Blue Fox’s witness, Gary Klutz, testified that the pump motors were protected against overload current conditions. If a foreign object was contained in the sewage and either jammed or slowed down a pump, the circuit breaker would trip. After this occurred the object could pass through the system. This testimony clearly indicates that the electrical failure could have been caused by an instrumentality that this court has already deemed not to be within the exclusive control of a city. The trial court’s refusal to give an instruction on res ipsa loquitor under these circumstances was proper.
Since there was no error in the trial court’s decision to dismiss the causes of action in contract and strict liability, or in refusing to give the proposed instruction on res ipsa loquitor, and the jury verdict was not contrary to the evidence presented, the trial court’s refusal to grant a new trial on this matter was proper.
The judgment of the trial court is affirmed.
WUEST, C.J., and MORGAN, J., concur. HENDERSON and SABERS, JJ., dissent. GERKEN, Circuit Judge, for MILLER, J., disqualified.SDCL 9-48-2, as amended in 1982, provides: Every municipality may establish and construct main, trunk and service sewers, and septic or sewage treatment plants, drains and manholes either within its corporate limits or within ten miles of its corporate limits; may appropriate funds and levy taxes to accumulate funds for such purposes; may establish sewer districts as provided by this title; may acquire any sewer, drain, or system of sewage and drainage already established and constructed; and may acquire land within or without the municipality for a septic or sewage treatment plant or outlet to any main sewer, and may assess the cost thereof with cost of any necessary extension or connection of such main sewer to all the property within the sewer district benefited as provided by this title. The proceeds of any taxes levied for the accumulation of funds under this section shall be placed in a separate fund which may not revert at the end of the fiscal year. The amount of the fund may never exceed an amount equivalent to ten mills of the taxable value of all property within the municipality. The fund shall be established by a resolution adopted pursuant to chapter 9-19.