Speaker malfunction / diagnosis

Hello,
my speaker is acting up and more or less stopped working.
Is there a way to check whether its a software or hardware related problem before ordering replacement parts?