I am very sorry to hear about this. I imagine you must be extremely upset about it.
The United Kingdom is known to bar entry to those convicted of sexual offenses.
Can you describe to us what happened and where you were when you were denied entry? This is a controversial issue that has been in the headlines recently. Here is are two recent posts on the subject