A 29-year-old Lamesa man told jurors Tuesday in the 137th District Court that baggy pants, a faulty zipper and a stomach ache two years ago resulted in a mother finding him with an exposed erection in her kitchen near her 14-year-old daughter.

Victor Molinar Jr., who is on bond, denied having any sexual contact with the girl and pleaded not guilty to a second-degree felony count of sexual assault of a child, which carries a punishment of two to 20 years in prison.

The girl told jurors she believed she was in a relationship with Molinar and said she performed a sexual act on him Dec. 11, 2014, at her home in South Lubbock.

A-J Media does not identify alleged victims and children involved in sexual assault cases.

Molinar told jurors he and the girl's mother's boyfriend were co-workers who became fast friends. He also became friends with the girl's mother and was a frequent guest at her home. He said he was staying overnight when the alleged assault happened.

He said he was sleeping on a living room couch and was awoken by a sound from the kitchen. Holding up his pants with his hands, he went to investigate the sound, he said. He said the zipper of his pants, which he described as baggy, was broken and he unbuttoned his pants because he had a stomach ache.

The girl was already in the kitchen looking out a window when he arrived, Molinar said. He was opening the refrigerator to get a drink when the girl's mother turned on the kitchen light and startled him, causing him to release his pants, which fell around his ankles. He said his genitals poked through his boxer shorts and the girl's mother began screaming at him.

"I tried to explain and told her nothing happened," he said.

Molinar said he ran out of the house and went home.

The girl's mother said her daughter was upset and also left their home.

A Lubbock police officer found the girl down the street and spoke with her. A video of the girl's interview with responding officers was played to jurors.

The girl told police she and Molinar were in the living room together and she performed a sexual act on him. She said Molinar left the living room to investigate a noise from the kitchen.

She told jurors Molinar never threatened her or forced her to do anything, saying she believed they were in a relationship.

The girl's mother told jurors after Molinar left, she and her boyfriend went through her daughter's phone and found messages between Molinar and the girl, concealed by a file-hiding application.

The girl's mother told jurors the messages between her daughter and Molinar were sexual. Her boyfriend told jurors he saw a picture of Molinar shirtless on the girl's phone.

Molinar denied having inappropriate conversations with the girl.

However, the alleged messages were not presented to jurors because they were erased. The girl's mother said the files were erased after her boyfriend attempted to get rid of the file-hiding app.

The girl's mother's boyfriend told jurors he was asked to perform a factory reset on the phone to prevent the girl from installing any more file-hiding apps and from having further contact with Molinar.

Both sides rested their case Tuesday. The trial resumes today with closing arguments.