Three suspects accused of holding a couple of runaway girls against their will so they could pimp them out as prostitutes were charged Sunday with raps including attempted sexual trafficking, sources said.

Rocker Rudy, 19, Donald Jackson, 19, and Berisa Nebahate, 19, were arrested Saturday after one of the two teens used a phone to “ping” her father’s cell from East New York, law-enforcement sources said.

All three suspects have been charged with attempted compelling prostitution, attempted sex trafficking, attempted promoting prostitution, attempted labor trafficking and child endangerment, according to cops.

Rudy was also charged with second-degree rape, assault, and criminal possession of stolen property, while Nebahate was charged with criminal possession of a weapon, as well, police said.

A young woman lured the two teen girls, ages 14 and 15, to the city from Ulster County with the promise of modeling jobs, sources said.

They were first brought to The Bronx, then taken to a so-called “trap house” in East New York.

After overhearing that their captors intended to pimp them out as prostitutes, the teens tried to leave the house, but Nebahate pulled out a knife and forced them to stay, police said.

Rudy, who allegedly raped the 14-year-old girl, also grabbed the older teen by the neck and punched her when they tried to escape, police said. To impair their judgment, the girls’ captors gave them Xanax, according to police.

At some point Saturday, the 15-year-old girl was allowed to walk outside — and that’s when she used a cell phone to ping her father with their location, police said.