“Ein Kaffee kostet drei Euro.” means “A coffee costs three euros.” Use ein when the coffee is doing the action.