Welcome, you have a Great Looking Boxster!
If your issue is not the fuse, and the they work intermittently, the only conclusion I can reach is that there is something wrong with either the wiring or the headlamp switch. The switch would be the easiest place to start looking for a problem.