Just a heads up, it will be difficult to impossible throw many "bass" flies on a 5wt, especially as a beginner. That said there are plenty of flies you can use to catch bass, just don't go buy big deer hair poppers or 1/0 meat whistles.
Small poppers, Clousers, wolly buggers will catch plenty of bass and some sunfish as well. Look for sizes in the 10-6 range for a 5wt. Those little pan fish poppers can be a blast for bream. Chartreuse, olive, white, black are good starting colors.
Not sure how much you know so I'll start pretty basic. Once you make a cast, you won't retrieve the fly with the reel. Instead you will strip the fly in with your non-casting hand. I'm sure Google can produce some videos. Vary the speed/cadence until you find something they like. Work the same areas yiu would with a similar lure. For bream poppers I usually just mostly let them sit and the rubber legs will do the work.
When you feel a bass hit your fly, don't try to set the hook like a spinning rod. Instead, firmly grip the line in your non-casting hand and elbow the guy behind you hard. This is known as a strip set.
Let's us know how it goes, and be ware that it is very addicting.