A convicted sex offender is behind bars after he allegedly tried to kidnap his ex-girlfriend while she was jogging in Harlingen.