EMERGENCY services are investigating how a car managed to flip onto its side in a narrow St Peter Port Road on Tuesday night, trapping one of the passengers inside.