New? Or still under warranty? Bring it back for a replacement.
Out of warranty? See if they'll help you with a cheap repair or a discount on another phone.
It could be a bad speaker, a broken wire, a bad component on the motherboard - or even enough dirt in the speaker grill that no sound is coming out.