Marketing is the work of understanding what people need, creating an offer that meets those needs, and making that offer available. It includes decisions about the product, price, place and promotion. Selling is one activity within marketing, not the whole process.
A bakery asks commuters why they skip breakfast and discovers a demand for food that can be collected quickly. It changes the menu and opening time before buying advertisements.