Pump sucks water from fresh water tank
When connected to city water and with pump turned on---pump will only RUN if city water pressure is lower then pump start set point.
If pump runs then city water flow is stopped because pump discharge pressure closes 'check valve' that is part of city water inlet assembly.
Check valve prevents backflow/cross contamination between RV water system and outside water supply system
When city water is being used a check valve internal of pump prevents backflow thru pump into rv fresh water tank.......overfilling it if pump check valve fails
Pump discharge and city water tie into same cold water pluming line/system......which then feeds cold water plumbing and inlet to water heater and then to hot water plumbing
Basic Generic RV Plumbing System
