[UK] Legal distinction between squatters, trespassers and burglars?

What’s the difference between the three groups (squatters, trespassers and burglars)?

IANAL, but…

Burglary is forced entry & theft. Trespass is illegal presence on property, without forced entry. Squatting isn’t a legal term, but a social definition.