A bun is a sweet or plain small bread or a round roll. It can be consumed as-is, made into a sandwich, or designed to be cut in half and filled with ingredients. "Bun" can also refer to a kind of filled dumpling, such as Chinese baozi.
In Northern England "bun" can refer to a small cake, elsewhere called a fairycake, or cupcake.