The first thing to check, as David says, is to make sure you have all the system updates etc. (It may also be handy to post which Mac and iPad you have and which OS versions they are using).
Changing your modem rather than the router will have no effect on the wireless part of your network. Those 4 days of it working are likely coincidence. Changing the router will effect your wireless network - one way or another - but before we go down that route I'd suggest checking for interference.
As it's an issue that's only just started, and can be intermittent, I'd suggest something has changed and that's not necessarily something in your control.
A neighbour may well have another device or network using a similar channel to your network and causing signal loss/degradation.
Grab a copy of
iStumbler (whichever version is appropriate for your version of OSX) and let it run. You'll get to see all the wireless networks in range and the channels they are broadcasting on.
Once you have that information you need to log into your router and change your wireless channel to a fixed channel as far away from the surrounding networks as possible. You may not find an empty channel depending on what's around you. In this case pick a channel that's got a competing device with the weakest signal. This will become clearer once you run iStumbler.
Once you've made the change, reboot your router and devices and try again.